staging: media: zoran: Remove print statement for failed kmalloc
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>
Tue, 2 Apr 2019 20:14:30 +0000 (01:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 09:08:00 +0000 (11:08 +0200)
Remove print statement indicating failure of kmalloc. Issue found with
Coccinelle.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/zoran/zoran_driver.c

index 4c281d9..9e39dc5 100644 (file)
@@ -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;
                }