diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-01-15 15:40:46 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-05-16 09:21:48 +0100 |
commit | 24303ee7210efb49467693c32d56fbf5d64a840d (patch) | |
tree | 3429921c64396cb67679fd7d6b97f90223f7fb17 /drivers/mfd/sm501.c | |
parent | d001117474616057ff715efd702e282db570a902 (diff) | |
download | linux-24303ee7210efb49467693c32d56fbf5d64a840d.tar.bz2 |
mfd: sm501: Delete error message for a failed memory allocation in two places
Omit an extra message for a memory allocation failure in these functions.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/sm501.c')
-rw-r--r-- | drivers/mfd/sm501.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index ad774161a22d..7298d6b571a1 100644 --- a/drivers/mfd/sm501.c +++ b/drivers/mfd/sm501.c @@ -1385,7 +1385,6 @@ static int sm501_plat_probe(struct platform_device *dev) sm = kzalloc(sizeof(struct sm501_devdata), GFP_KERNEL); if (sm == NULL) { - dev_err(&dev->dev, "no memory for device data\n"); ret = -ENOMEM; goto err1; } @@ -1575,7 +1574,6 @@ static int sm501_pci_probe(struct pci_dev *dev, sm = kzalloc(sizeof(struct sm501_devdata), GFP_KERNEL); if (sm == NULL) { - dev_err(&dev->dev, "no memory for device data\n"); err = -ENOMEM; goto err1; } |