snic: remove unnecessary oom message
Subsystems (2)
PATCH 1/1 snic: remove unnecessary oom message
Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message
Remove it can help us save a bit of memory.
Signed-off-by Zhen Lei <[email protected]>
--- drivers/scsi/snic/vnic_wq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/scsi/snic/vnic_wq.c +1 -4
@@ -48,11 +48,8 @@ static int vnic_wq_alloc_bufs(struct vnic_wq *wq)for (i =0 ; i < blks; i++) { wq->bufs[i] =kzalloc (VNIC_WQ_BUF_BLK_SZ ,GFP_ATOMIC ); -if (!wq->bufs[i]) { -pr_err ("Failed to alloc wq_bufs\n" ); - +if (!wq->bufs[i])return -ENOMEM ; - } }for (i =0 ; i < blks; i++) {
Signature · 1 line
2.26.0.106.g9fadedd