From: Nishka Dasgupta Date: Tue, 2 Apr 2019 20:13:02 +0000 (+0530) Subject: staging: media: zoran: Remove print statement X-Git-Tag: v5.2-rc1~153^2~172 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1fbd0bcc363ab34d9bd1b78c84a2d47d6121f0f1;p=thirdparty%2Flinux.git staging: media: zoran: Remove print statement 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c index ea10523194e82..ea7102c56d6f5 100644 --- a/drivers/staging/media/zoran/zoran_card.c +++ b/drivers/staging/media/zoran/zoran_card.c @@ -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; }