mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
[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>
This commit is contained in:
parent
f03f02f9d2
commit
3e70b256a6
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue