[SCSI] be2iscsi: correcting the return
authorJayamohan Kallickal <jayamohank@serverengines.com>
Sat, 23 Jan 2010 00:07:40 +0000 (05:37 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 9 Feb 2010 00:34:15 +0000 (18:34 -0600)
This patch fixes an issue where return was not called properly.
Thanks to Mike Christie for spotting this

Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/be2iscsi/be_main.c

index 2f0027c5605c85d5fcfc4cf7a369442047346cc6..6b700ad2bb47116188c6812ad231d9142be9d3f4 100644 (file)
@@ -3873,7 +3873,7 @@ static int __init beiscsi_module_init(void)
                SE_DEBUG(DBG_LVL_1,
                         "beiscsi_module_init - Unable to  register beiscsi"
                         "transport.\n");
-               ret = -ENOMEM;
+               return -ENOMEM;
        }
        SE_DEBUG(DBG_LVL_8, "In beiscsi_module_init, tt=%p \n",
                 &beiscsi_iscsi_transport);