drm/tilcdc: Return directly after a failed kfree_table_init() in tilcdc_convert_slave...
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 22 Sep 2016 07:29:23 +0000 (09:29 +0200)
committerJyri Sarha <jsarha@ti.com>
Fri, 23 Sep 2016 10:49:52 +0000 (13:49 +0300)
Return directly after a memory allocation failed in this function
at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c

index dd8de260c36284f955939ecad8d5b0d7c94a928f..623a9140493c681bd9a9495d21395e41155844e9 100644 (file)
@@ -207,7 +207,7 @@ static void __init tilcdc_convert_slave_node(void)
        int ret;
 
        if (kfree_table_init(&kft))
-               goto out;
+               return;
 
        lcdc = of_find_matching_node(NULL, tilcdc_of_match);
        slave = of_find_matching_node(NULL, tilcdc_slave_of_match);