Commit 292155be authored by Markus Elfring's avatar Markus Elfring Committed by Lee Jones

mfd: janz-cmodio: Delete error message for a failed memory allocation

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 2e4d5494
...@@ -183,10 +183,8 @@ static int cmodio_pci_probe(struct pci_dev *dev, ...@@ -183,10 +183,8 @@ static int cmodio_pci_probe(struct pci_dev *dev,
int ret; int ret;
priv = devm_kzalloc(&dev->dev, sizeof(*priv), GFP_KERNEL); priv = devm_kzalloc(&dev->dev, sizeof(*priv), GFP_KERNEL);
if (!priv) { if (!priv)
dev_err(&dev->dev, "unable to allocate private data\n");
return -ENOMEM; return -ENOMEM;
}
pci_set_drvdata(dev, priv); pci_set_drvdata(dev, priv);
priv->pdev = dev; priv->pdev = dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment