Skip to content

Commit

Permalink
qla3xxx: ethernet: Silence static checker warning.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Santosh Nayak authored and David S. Miller committed Mar 6, 2012
1 parent 9184a22 commit 6975f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/qlogic/qla3xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6975f4c

Please sign in to comment.