]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/wdc: prevent duplicate close on NVMe device
authorJeremy Kerr <jk@codeconstruct.com.au>
Tue, 12 Jul 2022 05:28:17 +0000 (13:28 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Wed, 3 Aug 2022 07:30:19 +0000 (15:30 +0800)
commit9fbef859c28b4bd98a1b6bcb57fe3250d2634803
tree46c66d7a28b7ec2656ab5bbcacb8d9bcaa6fad34
parent972f9f76bca4238f7a19e89de313c97fbe4b0163
plugins/wdc: prevent duplicate close on NVMe device

wdc_crash_dump() will close the NVMe device file descriptor, but so do
all of its callers.

This change removes the unnecessary close(), as well as a stray
backslash on the previous line (which may cause unexpected indentation
warnings).

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
plugins/wdc/wdc-nvme.c