scsi: devinfo: remove unnecessary oom message
PATCH 1/1 scsi: devinfo: 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/scsi_devinfo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/scsi/scsi_devinfo.c +1 -3
@@ -357,10 +357,8 @@ int scsi_dev_info_list_add_keyed(int compatible, char *vendor, char *model,return PTR_ERR (devinfo_table); devinfo =kmalloc (sizeof (*devinfo),GFP_KERNEL ); -if (!devinfo) { -printk (KERN_ERR "%s: no memory\n" , __func__); +if (!devinfo)return -ENOMEM ; - }scsi_strcpy_devinfo ("vendor" , devinfo->vendor,sizeof (devinfo->vendor), vendor, compatible);
Signature · 1 line
2.26.0.106.g9fadedd