diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-02-16 12:55:51 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-02-18 16:20:38 +0300 |
commit | b02b54914b2f2eb2c310497cfabb054e95fa1e2e (patch) | |
tree | c3988c5b3d4bcb790ec1635af5a84c70031688f1 /drivers/ata | |
parent | 27c4203a3d48cf161fbd86f2ee48f4eb286b73db (diff) | |
download | linux-b02b54914b2f2eb2c310497cfabb054e95fa1e2e.tar.xz |
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')
-rw-r--r-- | drivers/ata/pata_samsung_cf.c | 4 |
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); |