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>
This commit is contained in:
Frank Rowand 2018-10-04 20:39:24 -07:00
parent 2fe0e8769d
commit 8c329655c1
1 changed files with 3 additions and 4 deletions

View File

@ -1433,8 +1433,7 @@ static void of_unittest_destroy_tracked_overlays(void)
} while (defers > 0); } while (defers > 0);
} }
static int __init of_unittest_apply_overlay(int overlay_nr, int unittest_nr, static int __init of_unittest_apply_overlay(int overlay_nr, int *overlay_id)
int *overlay_id)
{ {
const char *overlay_name; const char *overlay_name;
@ -1467,7 +1466,7 @@ static int __init of_unittest_apply_overlay_check(int overlay_nr,
} }
ovcs_id = 0; 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) { if (ret != 0) {
/* of_unittest_apply_overlay already called unittest() */ /* of_unittest_apply_overlay already called unittest() */
return ret; return ret;
@ -1503,7 +1502,7 @@ static int __init of_unittest_apply_revert_overlay_check(int overlay_nr,
/* apply the overlay */ /* apply the overlay */
ovcs_id = 0; 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) { if (ret != 0) {
/* of_unittest_apply_overlay already called unittest() */ /* of_unittest_apply_overlay already called unittest() */
return ret; return ret;