aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>2019-04-03 01:43:02 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-03 11:08:00 +0200
commit1fbd0bcc363ab34d9bd1b78c84a2d47d6121f0f1 (patch)
treec9ecddfbf5e6655eb14d001f91ac7f85a6ef410c /drivers/staging/media
parentStaging: media: davinci_vpfe: Drop macro and use an in-kernel function (diff)
downloadlinux-dev-1fbd0bcc363ab34d9bd1b78c84a2d47d6121f0f1.tar.xz
linux-dev-1fbd0bcc363ab34d9bd1b78c84a2d47d6121f0f1.zip
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 <nishka.dasgupta@yahoo.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r--drivers/staging/media/zoran/zoran_card.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c
index ea10523194e8..ea7102c56d6f 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;
}