aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_samsung_cf.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-02-16 10:55:51 +0100
committerTejun Heo <tj@kernel.org>2018-02-18 05:20:38 -0800
commitb02b54914b2f2eb2c310497cfabb054e95fa1e2e (patch)
treec3988c5b3d4bcb790ec1635af5a84c70031688f1 /drivers/ata/pata_samsung_cf.c
parentpata_arasan_cf: Delete an unnecessary variable initialisation in arasan_cf_probe() (diff)
downloadlinux-dev-b02b54914b2f2eb2c310497cfabb054e95fa1e2e.tar.xz
linux-dev-b02b54914b2f2eb2c310497cfabb054e95fa1e2e.zip
pata_samsung_cf: Delete an error message for a failed memory allocation in pata_s3c_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/pata_samsung_cf.c')
-rw-r--r--drivers/ata/pata_samsung_cf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c
index 50801c40b029..bb96dc35950d 100644
--- a/drivers/ata/pata_samsung_cf.c
+++ b/drivers/ata/pata_samsung_cf.c
@@ -505,10 +505,8 @@ static int __init pata_s3c_probe(struct platform_device *pdev)
cpu_type = platform_get_device_id(pdev)->driver_data;
info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL);
- if (!info) {
- dev_err(dev, "failed to allocate memory for device data\n");
+ if (!info)
return -ENOMEM;
- }
info->irq = platform_get_irq(pdev, 0);