Fixed bug that was introduced through the previous commit (r875): a warning message...
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 21 May 2009 10:57:20 +0000 (10:57 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 21 May 2009 10:57:20 +0000 (10:57 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@876 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c

index 05c45df..442e9cd 100644 (file)
@@ -2486,7 +2486,7 @@ static void srpt_remove_one(struct ib_device *device)
        struct srpt_device *sdev;
 
        sdev = ib_get_client_data(device, &srpt_client);
-       if (!WARN_ON(sdev))
+       if (WARN_ON(!sdev))
                return;
 
        wait_for_completion(&sdev->scst_released);