mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 05:31:28 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user