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>
if (ret)
fprintf(stderr, "ERROR : WDC : failed to generate file name\n");
else
- ret = wdc_do_crash_dump(fd, f, type); \
- close(fd);
+ ret = wdc_do_crash_dump(fd, f, type);
return ret;
}