scsi: libsas: remove unnecessary oom message
Subsystems (2)
PATCH 1/1 scsi: libsas: 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/libsas/sas_ata.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/scsi/libsas/sas_ata.c +1 -3
@@ -552,10 +552,8 @@ int sas_ata_init(struct domain_device *found_dev)int rc; ata_host =kzalloc (sizeof (*ata_host),GFP_KERNEL ); -if (!ata_host) { -pr_err ("ata host alloc failed.\n" ); +if (!ata_host)return -ENOMEM ; - }ata_host_init (ata_host, ha->dev, &sas_sata_ops);
Signature · 1 line
2.26.0.106.g9fadedd