[media] DaVinci-VPIF-Display: Delete an error message for a failed memory allocation
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 12 Oct 2016 13:38:41 +0000 (10:38 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 15:02:25 +0000 (13:02 -0200)
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 <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/davinci/vpif_display.c

index 0faab86db9a1e8c92c1036caa2ba74a020575451..987c17d3825dbc09221a3c48a855de453e2a6a90 100644 (file)
@@ -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;
        }