summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-02-16 16:01:12 +0100
committerTejun Heo <tj@kernel.org>2018-02-18 14:16:06 +0100
commitdcf3c1c1e8c7dcb4e129ad370b2aee6b8a7dd4cf (patch)
tree3d231ba2feaaf90e5fa2287994b7454822f28223 /drivers/ata
parentlibata: update documentation for sysfs interfaces (diff)
downloadlinux-dcf3c1c1e8c7dcb4e129ad370b2aee6b8a7dd4cf.tar.xz
linux-dcf3c1c1e8c7dcb4e129ad370b2aee6b8a7dd4cf.zip
pata_arasan_cf: Delete an error message for a failed memory allocation in arasan_cf_probe()
Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_arasan_cf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c
index b4d54771c9fe..be5fbcedecbf 100644
--- a/drivers/ata/pata_arasan_cf.c
+++ b/drivers/ata/pata_arasan_cf.c
@@ -809,10 +809,8 @@ static int arasan_cf_probe(struct platform_device *pdev)
}
acdev = devm_kzalloc(&pdev->dev, sizeof(*acdev), GFP_KERNEL);
- if (!acdev) {
- dev_warn(&pdev->dev, "kzalloc fail\n");
+ if (!acdev)
return -ENOMEM;
- }
if (pdata)
quirk = pdata->quirk;