Skip to contentSkip to conversation

staging: media: zoran: Remove print statement for failed kmalloc

PATCH New Nishka Dasgupta 1 participant 1 message Apr 2, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: media: zoran: Remove print statement for failed kmalloc

Remove print statement indicating failure of kmalloc. Issue found with Coccinelle.

---
 drivers/staging/media/zoran/zoran_driver.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/staging/media/zoran/zoran_driver.c +0 -4
index 4c281d9a0e60..9e39dc549024 100644
@@ -226,10 +226,6 @@ static int v4l_fbuffer_alloc(struct zoran_fh *fh)
 		mem = kmalloc(fh->buffers.buffer_size,
 			      GFP_KERNEL | __GFP_NOWARN);
 		if (!mem) {
-			dprintk(1,
-				KERN_ERR
-				"%s: %s - kmalloc for V4L buf %d failed\n",
-				ZR_DEVNAME(zr), __func__, i);
 			v4l_fbuffer_free(fh);
 			return -ENOBUFS;
 		}
Signature · 1 line
2.19.1