diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-05-15 11:08:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-18 16:59:06 +0200 |
commit | df2aa81a44a904c34473f0974d67c5b257163e86 (patch) | |
tree | 49fdcf6211f8cc3e53819f8ec8418a5d863d8a01 /drivers/ipack/ipack.c | |
parent | a3ade8cc474d848676278660e65f5af1e9e094d9 (diff) | |
download | op-kernel-dev-df2aa81a44a904c34473f0974d67c5b257163e86.zip op-kernel-dev-df2aa81a44a904c34473f0974d67c5b257163e86.tar.gz |
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.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ipack/ipack.c')
-rw-r--r-- | drivers/ipack/ipack.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ipack/ipack.c b/drivers/ipack/ipack.c index 1210244..575c4f2 100644 --- a/drivers/ipack/ipack.c +++ b/drivers/ipack/ipack.c @@ -402,7 +402,6 @@ static int ipack_device_read_id(struct ipack_device *dev) * ID ROM contents */ dev->id = kmalloc(dev->id_avail, GFP_KERNEL); if (!dev->id) { - dev_err(&dev->dev, "dev->id alloc failed.\n"); ret = -ENOMEM; goto out; } |