]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: media: zoran: Remove print statement
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>
Tue, 2 Apr 2019 20:13:02 +0000 (01:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 09:08:00 +0000 (11:08 +0200)
Remove print statement following unsuccessful kmalloc. Issue found with
the following Coccinelle script:
@@
identifier e1, print;
char [] c;
@@
e1 = kmalloc(...);
if(!e1){
-print(...,c,...);
... when any
}

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

index ea10523194e827a44a40dd1ca9c63a9bc6c2fad7..ea7102c56d6f5b2f1823c08a7bbd1fc8474b84a3 100644 (file)
@@ -1131,8 +1131,6 @@ static struct videocodec_master *zoran_setup_videocodec(struct zoran *zr,
 
        m = kmalloc(sizeof(struct videocodec_master), GFP_KERNEL);
        if (!m) {
-               dprintk(1, KERN_ERR "%s: %s - no memory\n",
-                       ZR_DEVNAME(zr), __func__);
                return m;
        }