]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: slicoss: Fix three checkpatch.pl errors in slicoss.c
authorCruz Julian Bishop <cruzjbishop@gmail.com>
Mon, 14 Jan 2013 02:29:08 +0000 (12:29 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 21:53:06 +0000 (13:53 -0800)
The errors fixed are all instances of
"ERROR: do not use assignment in if condition"

Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c

index 5aa03eed072227433e9e232857c0c63732d1a085..b6b99a3e23cbee760917a6ce93ef5c0a247494a3 100644 (file)
@@ -2930,11 +2930,14 @@ static int slic_if_init(struct adapter *adapter)
        }
 
        if (!adapter->queues_initialized) {
-               if ((rc = slic_rspqueue_init(adapter)))
+               rc = slic_rspqueue_init(adapter);
+               if (rc)
                        goto err;
-               if ((rc = slic_cmdq_init(adapter)))
+               rc = slic_cmdq_init(adapter);
+               if (rc)
                        goto err;
-               if ((rc = slic_rcvqueue_init(adapter)))
+               rc = slic_rcvqueue_init(adapter);
+               if (rc)
                        goto err;
                adapter->queues_initialized = 1;
        }