diff options
-rw-r--r-- | Documentation/dvb/get_dvb_firmware | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/dvb/get_dvb_firmware b/Documentation/dvb/get_dvb_firmware index 64174d6258f0..3d1b0ab70c8e 100644 --- a/Documentation/dvb/get_dvb_firmware +++ b/Documentation/dvb/get_dvb_firmware | |||
@@ -413,13 +413,14 @@ sub mpc718 { | |||
413 | 413 | ||
414 | while (<IN>) { | 414 | while (<IN>) { |
415 | $currlen = length($_); | 415 | $currlen = length($_); |
416 | if ($prevlen == $currlen || $currlen <= 64) { | 416 | if ($prevlen == $currlen && $currlen <= 64) { |
417 | chop; chop; # Get rid of "TUNER GO" | 417 | chop; chop; # Get rid of "TUNER GO" |
418 | s/^\0\0//; # get rid of leading 00 00 if it's there | 418 | s/^\0\0//; # get rid of leading 00 00 if it's there |
419 | printf OUT "$_"; | 419 | printf OUT "$_"; |
420 | $found = 1; | 420 | $found = 1; |
421 | last; | 421 | last; |
422 | } | 422 | } |
423 | $prevlen = $currlen; | ||
423 | } | 424 | } |
424 | } | 425 | } |
425 | close OUT; | 426 | close OUT; |