]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
scripts-pnmtologo-fix-for-plain-pbm-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 25 Oct 2012 01:14:55 +0000 (12:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 31 Oct 2012 05:49:49 +0000 (16:49 +1100)
ERROR: do not initialise statics to 0 or NULL
#24: FILE: scripts/pnmtologo.c:77:
+static int is_plain_pbm = 0;

WARNING: line over 80 characters
#33: FILE: scripts/pnmtologo.c:108:
+  * between the digits. This is Ok cause we know a PBM can only have a '1'

total: 1 errors, 1 warnings, 25 lines checked

./patches/scripts-pnmtologo-fix-for-plain-pbm.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Andreas Bießmann <andreas@biessmann.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/pnmtologo.c

index 68bb4efc5af429a2f5d1ec359a06d3f2e7af8bb4..ce937970cf98297b19c9b64c02cd24f4024119c7 100644 (file)
@@ -104,9 +104,11 @@ static unsigned int get_number(FILE *fp)
     val = 0;
     while (isdigit(c)) {
        val = 10*val+c-'0';
-       /* some PBM are 'broken'; GiMP for example exports a PBM without space
-        * between the digits. This is Ok cause we know a PBM can only have a '1'
-        * or a '0' for the digit. */
+       /*
+        * Some PBM are 'broken'; GiMP for example exports a PBM without space
+        * between the digits. This is OK because we know a PBM can only have a
+        * '1' or a '0' for the digit.
+        */
        if (is_plain_pbm)
                break;
        c = fgetc(fp);