[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH OSSTEST] TestSupport: Avoid use of uninitialised $dtbs warning



If $xopts{dtbs} wasn't set then neither was $dtbs.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 Osstest/TestSupport.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index 7c1bb2c..755a4ab 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -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
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.