diff options
author | Nishka Dasgupta <nishka.dasgupta@yahoo.com> | 2019-04-03 01:43:02 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-03 11:08:00 +0200 |
commit | 1fbd0bcc363ab34d9bd1b78c84a2d47d6121f0f1 (patch) | |
tree | c9ecddfbf5e6655eb14d001f91ac7f85a6ef410c /drivers | |
parent | d45c6c9bbfb3e543e5b0e6bc5af4ec9f51dbac23 (diff) | |
download | linux-1fbd0bcc363ab34d9bd1b78c84a2d47d6121f0f1.tar.bz2 |
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')
-rw-r--r-- | drivers/staging/media/zoran/zoran_card.c | 2 |
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; } |