scst_vdisk: Remove a superfluous test

If the code after the "out_close:" label is reached it is guaranteed that fd != NULL.
Hence remove the if (fd != NULL) test after that label.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4484 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-08-27 21:44:30 +00:00
parent a72b347ccf
commit d4e66866b1

View File

@@ -671,7 +671,7 @@ out:
static void vdisk_check_tp_support(struct scst_vdisk_dev *virt_dev)
{
struct file *fd = NULL;
struct file *fd;
TRACE_ENTRY();
@@ -707,8 +707,7 @@ static void vdisk_check_tp_support(struct scst_vdisk_dev *virt_dev)
}
out_close:
if (fd != NULL)
filp_close(fd, NULL);
filp_close(fd, NULL);
out_check:
if (virt_dev->thin_provisioned_manually_set) {