projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c7d759
)
pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_p...
author
Markus Elfring
<elfring@users.sourceforge.net>
Fri, 16 Feb 2018 10:34:53 +0000
(11:34 +0100)
committer
Tejun Heo
<tj@kernel.org>
Sun, 18 Feb 2018 13:23:25 +0000
(
05:23
-0800)
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>
drivers/ata/pata_mpc52xx.c
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_mpc52xx.c
b/drivers/ata/pata_mpc52xx.c
index 9730125530f669ea3dc567235a4b3c7d598d17d0..f1d352d5f128537acbe861860e44dd2618a90158 100644
(file)
--- a/
drivers/ata/pata_mpc52xx.c
+++ b/
drivers/ata/pata_mpc52xx.c
@@
-738,7
+738,6
@@
static int mpc52xx_ata_probe(struct platform_device *op)
/* Prepare our private structure */
priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_ATOMIC);
if (!priv) {
- dev_err(&op->dev, "error allocating private structure\n");
rv = -ENOMEM;
goto err1;
}