scsi: ips: remove unnecessary oom message
Subsystems (3)
PATCH 1/1 scsi: ips: 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/ips.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/scsi/ips.c +1 -3
@@ -1685,10 +1685,8 @@ ips_flash_copperhead(ips_ha_t * ha, ips_passthru_t * pt, ips_scb_t * scb) pt->CoppCP.cmd.flashfw.count; ha->flash_data =dma_alloc_coherent (&ha->pcidev->dev, datasize, &ha->flash_busaddr,GFP_KERNEL ); -if (!ha->flash_data){ -printk (KERN_WARNING "Unable to allocate a flash buffer\n" ); +if (!ha->flash_data)return IPS_FAILURE ; - } ha->flash_datasize =0 ; ha->flash_len = datasize; }else
Signature · 1 line
2.26.0.106.g9fadedd