qla3xxx: ethernet: Silence static checker warning.
authorSantosh Nayak <santoshprasadnayak@gmail.com>
Fri, 2 Mar 2012 05:09:39 +0000 (05:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Mar 2012 20:19:14 +0000 (15:19 -0500)
Silence the following warning:
"warn: returning -1 instead of -ENOMEM is sloppy".

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qla3xxx.c

index 8da3e41058ca2b547c45966d877179dd225c4222..df09b1cb742fb211f639e0e6a16d658a768cf7d6 100644 (file)
@@ -2836,7 +2836,7 @@ static int ql_create_send_free_list(struct ql3_adapter *qdev)
                req_q_curr++;
                tx_cb->oal = kmalloc(512, GFP_KERNEL);
                if (tx_cb->oal == NULL)
-                       return -1;
+                       return -ENOMEM;
        }
        return 0;
 }