Commit df2aa81a authored by Markus Elfring's avatar Markus Elfring Committed by Greg Kroah-Hartman

ipack: Delete an error message for a failed memory allocation in ipack_device_read_id()

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

This issue was detected by using the Coccinelle software.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdfSigned-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Acked-by: default avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a3ade8cc
...@@ -402,7 +402,6 @@ static int ipack_device_read_id(struct ipack_device *dev) ...@@ -402,7 +402,6 @@ static int ipack_device_read_id(struct ipack_device *dev)
* ID ROM contents */ * ID ROM contents */
dev->id = kmalloc(dev->id_avail, GFP_KERNEL); dev->id = kmalloc(dev->id_avail, GFP_KERNEL);
if (!dev->id) { if (!dev->id) {
dev_err(&dev->dev, "dev->id alloc failed.\n");
ret = -ENOMEM; ret = -ENOMEM;
goto out; goto out;
} }
......
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