[PATCH 2/2] contrib/m920x/m920x_parse.pl: silence a warning

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

 



Silence a warning due to the way get_line() is supposed to be called:

  Use of uninitialized value $cmd in split at m920x_parse.pl line 118

Signed-off-by: Antonio Ospite <ospite@xxxxxxxxxxxxxxxxx>
---
 contrib/m920x/m920x_parse.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/m920x/m920x_parse.pl b/contrib/m920x/m920x_parse.pl
index a6ca80a..19ff71d 100755
--- a/contrib/m920x/m920x_parse.pl
+++ b/contrib/m920x/m920x_parse.pl
@@ -190,7 +190,7 @@ my @bytes;
 if ($mode eq "fw") {
 	open(OUT, ">", "fw") || die "Can't open fw";
 
-	while(@bytes = get_line()) {
+	while(@bytes = get_line("-1")) {
 		if(scalar(@bytes) <= 1) {
 			last;
 		}
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux