Browse Source

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>
Santosh Nayak 13 years ago
parent
commit
6975f4ce5a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/ethernet/qlogic/qla3xxx.c

+ 1 - 1
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;
 }