]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
of: unittest: remove unused of_unittest_apply_overlay() argument
authorFrank Rowand <frank.rowand@sony.com>
Fri, 5 Oct 2018 03:39:24 +0000 (20:39 -0700)
committerFrank Rowand <frank.rowand@sony.com>
Fri, 9 Nov 2018 06:12:10 +0000 (22:12 -0800)
Argument unittest_nr is not used in of_unittest_apply_overlay(),
remove it.

Tested-by: Alan Tull <atull@kernel.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
drivers/of/unittest.c

index f0139d1e8b63b30214155e5eca386f3fb651db17..14838b21ec6a455abca541a168c668e586b4c245 100644 (file)
@@ -1433,8 +1433,7 @@ static void of_unittest_destroy_tracked_overlays(void)
        } while (defers > 0);
 }
 
-static int __init of_unittest_apply_overlay(int overlay_nr, int unittest_nr,
-               int *overlay_id)
+static int __init of_unittest_apply_overlay(int overlay_nr, int *overlay_id)
 {
        const char *overlay_name;
 
@@ -1467,7 +1466,7 @@ static int __init of_unittest_apply_overlay_check(int overlay_nr,
        }
 
        ovcs_id = 0;
-       ret = of_unittest_apply_overlay(overlay_nr, unittest_nr, &ovcs_id);
+       ret = of_unittest_apply_overlay(overlay_nr, &ovcs_id);
        if (ret != 0) {
                /* of_unittest_apply_overlay already called unittest() */
                return ret;
@@ -1503,7 +1502,7 @@ static int __init of_unittest_apply_revert_overlay_check(int overlay_nr,
 
        /* apply the overlay */
        ovcs_id = 0;
-       ret = of_unittest_apply_overlay(overlay_nr, unittest_nr, &ovcs_id);
+       ret = of_unittest_apply_overlay(overlay_nr, &ovcs_id);
        if (ret != 0) {
                /* of_unittest_apply_overlay already called unittest() */
                return ret;