TestSupport: Avoid use of uninitialised $dtbs warning
PATCH 1/1 TestSupport: Avoid use of uninitialised $dtbs warning
If $xopts{dtbs} wasn't set then neither was $dtbs.
Signed-off-by Ian Campbell <[email protected]>
--- Osstest/TestSupport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Osstest/TestSupport.pm +1 -1
@@ -2210,7 +2210,7 @@ sub setup_pxelinux_bootcfg ($$) { # Systems using BIOS are configured to use pxelinux sub setup_pxeboot_di_bios ($$$$$;%) { my ($ho,$kern,$initrd,$dicmd,$hocmd,%xopts) = @_; - my $dtbs = "fdtdir $xopts{dtbs}" if $xopts{dtbs}; + my $dtbs = $xopts{dtbs} ? "fdtdir $xopts{dtbs}" : ""; setup_pxelinux_bootcfg($ho, <<END); serial 0 $c{Baud} timeout 5
Signature · 1 line
2.1.4
Ian Campbell writes ("[PATCH OSSTEST] TestSupport: Avoid use of uninitialised $dtbs warning"):
Quoted 3 lines
If $xopts{dtbs} wasn't set then neither was $dtbs.
Signed-off-by Ian Campbell <[email protected]>
Acked-by Ian Jackson <[email protected]>
Ian.