From: Markus Elfring Date: Wed, 12 Oct 2016 13:38:41 +0000 (-0300) Subject: [media] DaVinci-VPIF-Display: Delete an error message for a failed memory allocation X-Git-Tag: v5.15~10718^2~1267 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ded1c8fa7563614bac9c3e69b0dec8238032725c;p=platform%2Fkernel%2Flinux-starfive.git [media] DaVinci-VPIF-Display: 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_display.c b/drivers/media/platform/davinci/vpif_display.c index 0faab86..987c17d 100644 --- a/drivers/media/platform/davinci/vpif_display.c +++ b/drivers/media/platform/davinci/vpif_display.c @@ -1276,7 +1276,6 @@ static __init int vpif_probe(struct platform_device *pdev) subdevdata = vpif_obj.config->subdevinfo; 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; }