Commit 6975f4ce authored by Santosh Nayak's avatar Santosh Nayak Committed by David S. Miller
Browse files

qla3xxx: ethernet: Silence static checker warning.



Silence the following warning:
"warn: returning -1 instead of -ENOMEM is sloppy".

Signed-off-by: default avatarSantosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9184a227
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}