From: Andrew Morton Date: Thu, 29 Nov 2012 03:18:15 +0000 (+1100) Subject: scripts-pnmtologo-fix-for-plain-pbm-checkpatch-fixes X-Git-Tag: next-20121205~1^2~214 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e992b5afca6c39713186dd997f0bc1eac3fe5b1b;p=karo-tx-linux.git scripts-pnmtologo-fix-for-plain-pbm-checkpatch-fixes 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 Cc: Geert Uytterhoeven Signed-off-by: Andrew Morton --- diff --git a/scripts/pnmtologo.c b/scripts/pnmtologo.c index 68bb4efc5af4..ce937970cf98 100644 --- a/scripts/pnmtologo.c +++ b/scripts/pnmtologo.c @@ -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);