From: Nishka Dasgupta Date: Tue, 2 Apr 2019 20:14:30 +0000 (+0530) Subject: staging: media: zoran: Remove print statement for failed kmalloc X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dc2971f20a3c9662b227fd77d39dff398e1f322e;p=linux.git staging: media: zoran: Remove print statement for failed kmalloc Remove print statement indicating failure of kmalloc. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zoran/zoran_driver.c index 4c281d9a0e60a..9e39dc5490242 100644 --- a/drivers/staging/media/zoran/zoran_driver.c +++ b/drivers/staging/media/zoran/zoran_driver.c @@ -226,10 +226,6 @@ static int v4l_fbuffer_alloc(struct zoran_fh *fh) mem = kmalloc(fh->buffers.buffer_size, GFP_KERNEL | __GFP_NOWARN); if (!mem) { - dprintk(1, - KERN_ERR - "%s: %s - kmalloc for V4L buf %d failed\n", - ZR_DEVNAME(zr), __func__, i); v4l_fbuffer_free(fh); return -ENOBUFS; }