summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/imon.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-08-29 12:40:07 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 20:09:58 +0200
commit3e70b256a6b6a549bdbbd5d70895ff8147c7cf7d (patch)
tree241e0d1aec3beb3355a6515ce57fef5202e0b88e /drivers/media/rc/imon.c
parent[media] media: rc: make device_type const (diff)
downloadlinux-3e70b256a6b6a549bdbbd5d70895ff8147c7cf7d.tar.xz
linux-3e70b256a6b6a549bdbbd5d70895ff8147c7cf7d.zip
[media] media: imon: delete an 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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/rc/imon.c')
-rw-r--r--drivers/media/rc/imon.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c
index b93dc6e1f1bf..188cf1b4ebb1 100644
--- a/drivers/media/rc/imon.c
+++ b/drivers/media/rc/imon.c
@@ -2311,10 +2311,9 @@ static struct imon_context *imon_init_intf0(struct usb_interface *intf,
int ret = -ENOMEM;
ictx = kzalloc(sizeof(struct imon_context), GFP_KERNEL);
- if (!ictx) {
- dev_err(dev, "%s: kzalloc failed for context", __func__);
+ if (!ictx)
goto exit;
- }
+
rx_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!rx_urb)
goto rx_urb_alloc_failed;