aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/unittest.c
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@sony.com>2018-10-04 23:39:24 -0400
committerFrank Rowand <frank.rowand@sony.com>2018-11-09 01:12:10 -0500
commit8c329655c14f9596bb0534492ea740994ded440c (patch)
tree878c4f1083269959605d90e3b235eed378cb57ab /drivers/of/unittest.c
parent2fe0e8769df9fed5098daea7db933bc414c329d7 (diff)
of: unittest: remove unused of_unittest_apply_overlay() argument
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>
Diffstat (limited to 'drivers/of/unittest.c')
-rw-r--r--drivers/of/unittest.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index f0139d1e8b63..14838b21ec6a 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -1433,8 +1433,7 @@ static void of_unittest_destroy_tracked_overlays(void)
1433 } while (defers > 0); 1433 } while (defers > 0);
1434} 1434}
1435 1435
1436static int __init of_unittest_apply_overlay(int overlay_nr, int unittest_nr, 1436static int __init of_unittest_apply_overlay(int overlay_nr, int *overlay_id)
1437 int *overlay_id)
1438{ 1437{
1439 const char *overlay_name; 1438 const char *overlay_name;
1440 1439
@@ -1467,7 +1466,7 @@ static int __init of_unittest_apply_overlay_check(int overlay_nr,
1467 } 1466 }
1468 1467
1469 ovcs_id = 0; 1468 ovcs_id = 0;
1470 ret = of_unittest_apply_overlay(overlay_nr, unittest_nr, &ovcs_id); 1469 ret = of_unittest_apply_overlay(overlay_nr, &ovcs_id);
1471 if (ret != 0) { 1470 if (ret != 0) {
1472 /* of_unittest_apply_overlay already called unittest() */ 1471 /* of_unittest_apply_overlay already called unittest() */
1473 return ret; 1472 return ret;
@@ -1503,7 +1502,7 @@ static int __init of_unittest_apply_revert_overlay_check(int overlay_nr,
1503 1502
1504 /* apply the overlay */ 1503 /* apply the overlay */
1505 ovcs_id = 0; 1504 ovcs_id = 0;
1506 ret = of_unittest_apply_overlay(overlay_nr, unittest_nr, &ovcs_id); 1505 ret = of_unittest_apply_overlay(overlay_nr, &ovcs_id);
1507 if (ret != 0) { 1506 if (ret != 0) {
1508 /* of_unittest_apply_overlay already called unittest() */ 1507 /* of_unittest_apply_overlay already called unittest() */
1509 return ret; 1508 return ret;