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:
2e4d549
)
mfd: janz-cmodio: Delete error message for a failed memory allocation
author
Markus Elfring
<elfring@users.sourceforge.net>
Sun, 14 Jan 2018 21:15:09 +0000
(22:15 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000
(09:21 +0100)
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: Lee Jones <lee.jones@linaro.org>
drivers/mfd/janz-cmodio.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/janz-cmodio.c
b/drivers/mfd/janz-cmodio.c
index ec1f46a6be3a021f67b7098f81ec887a5d2abf7c..317a47ad5bb751dc6b39469fe4945e4beaf8fc87 100644
(file)
--- a/
drivers/mfd/janz-cmodio.c
+++ b/
drivers/mfd/janz-cmodio.c
@@
-183,10
+183,8
@@
static int cmodio_pci_probe(struct pci_dev *dev,
int ret;
priv = devm_kzalloc(&dev->dev, sizeof(*priv), GFP_KERNEL);
- if (!priv) {
- dev_err(&dev->dev, "unable to allocate private data\n");
+ if (!priv)
return -ENOMEM;
- }
pci_set_drvdata(dev, priv);
priv->pdev = dev;