[PATCH] SCSI-wd33c93: Deletion of a check before the function call "wd33c93_setup"

SF Markus Elfring
2015-06-24T15:34:06Z

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Wed, 24 Jun 2015 17:15:17 +0200

The wd33c93_setup() function performs also input parameter validation.
Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
drivers/scsi/wd33c93.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/wd33c93.c b/drivers/scsi/wd33c93.c
index 9e09da4..e5ed956 100644
--- a/drivers/scsi/wd33c93.c
+++ b/drivers/scsi/wd33c93.c
@@ -1939,7 +1939,7 @@ wd33c93_init(struct Scsi_Host *instance, const wd33c93_regs regs,
int val;
char buf[32];

- if (!done_setup && setup_strings)
+ if (!done_setup)
wd33c93_setup(setup_strings);

hostdata = (struct WD33C93_hostdata *) instance->hostdata;
--
2.4.4