From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Tue, 29 Aug 2017 11:04:49 +0000 Subject: [PATCH 1/2] [media] imon: Delete an error message for a failed memory allocation in imon_init_intf0( Message-Id: List-Id: References: <09417655-9241-72f4-6484-a3c8b3eae87a@users.sourceforge.net> In-Reply-To: <09417655-9241-72f4-6484-a3c8b3eae87a@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-media@vger.kernel.org, Andi Shyti , Arnd Bergmann , Geliang Tang , Hans Verkuil , Mauro Carvalho Chehab , Sakari Ailus , Sean Young , Wolfram Sang Cc: LKML , kernel-janitors@vger.kernel.org From: Markus Elfring Date: Tue, 29 Aug 2017 12:40:07 +0200 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 --- drivers/media/rc/imon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c index bd76534a2749..e6978f1b7f2c 100644 --- a/drivers/media/rc/imon.c +++ b/drivers/media/rc/imon.c @@ -2313,7 +2313,6 @@ static struct imon_context *imon_init_intf0(struct usb_interface *intf, - 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; -- 2.14.1