Skip to contentSkip to conversation

staging: media: zoran: Remove print statement

PATCH New Nishka Dasgupta 1 participant 1 message Apr 2, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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
}

---
 drivers/staging/media/zoran/zoran_card.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/media/zoran/zoran_card.c +0 -2
index ea10523194e8..ea7102c56d6f 100644
@@ -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;
 	}
 
Signature · 1 line
2.19.1