diff options
author | Santosh Nayak <santoshprasadnayak@gmail.com> | 2012-03-02 05:09:39 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-06 15:19:14 -0500 |
commit | 6975f4ce5a44e337514283e84761adaf2849aa26 (patch) | |
tree | caaa108d1b4225cb4c37edc48786a47b0ae249ca /drivers/net/ethernet | |
parent | 9184a22701ed257974e7950be11da4cbd3116c63 (diff) | |
download | linux-6975f4ce5a44e337514283e84761adaf2849aa26.tar.bz2 |
qla3xxx: ethernet: Silence static checker warning.
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/qlogic/qla3xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qla3xxx.c b/drivers/net/ethernet/qlogic/qla3xxx.c index 8da3e41058ca..df09b1cb742f 100644 --- a/drivers/net/ethernet/qlogic/qla3xxx.c +++ b/drivers/net/ethernet/qlogic/qla3xxx.c @@ -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; } |