From: Markus Elfring Date: Wed, 12 Oct 2016 13:18:45 +0000 (-0300) Subject: [media] DaVinci-VPIF-Capture: Delete an error message for a failed memory allocation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bc285799f7e8c61eaacdd73aa8644b1eaf504bb4;p=linux-beck.git [media] DaVinci-VPIF-Capture: Delete an error message for a failed memory allocation Omit an extra message for a memory allocation failure in this function. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Markus Elfring Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c index 8a7d46210a44..515384b25ea1 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c @@ -1461,7 +1461,6 @@ static __init int vpif_probe(struct platform_device *pdev) subdev_count = vpif_obj.config->subdev_count; vpif_obj.sd = kcalloc(subdev_count, sizeof(*vpif_obj.sd), GFP_KERNEL); if (vpif_obj.sd == NULL) { - vpif_err("unable to allocate memory for subdevice pointers\n"); err = -ENOMEM; goto vpif_unregister; }