From: Andrew Morton ERROR: need spaces around that '<' (ctx:WxV) #775: FILE: lib/inflate.c:245: + if (size <0) ^ ERROR: use tabs not spaces #776: FILE: lib/inflate.c:246: + error("Malloc error");$ ERROR: use tabs not spaces #778: FILE: lib/inflate.c:248: + malloc_ptr = free_mem_ptr;$ ERROR: use tabs not spaces #786: FILE: lib/inflate.c:256: + error("Out of memory");$ ERROR: use tabs not spaces #796: FILE: lib/inflate.c:266: + malloc_ptr = free_mem_ptr;$ total: 5 errors, 0 warnings, 705 lines checked ./patches/inflate-refactor-inflate-malloc-code.patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Thomas Petazzoni Signed-off-by: Andrew Morton --- lib/inflate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff -puN lib/inflate.c~inflate-refactor-inflate-malloc-code-checkpatch-fixes lib/inflate.c --- a/lib/inflate.c~inflate-refactor-inflate-malloc-code-checkpatch-fixes +++ a/lib/inflate.c @@ -242,10 +242,10 @@ static void *malloc(int size) { void *p; - if (size <0) - error("Malloc error"); + if (size < 0) + error("Malloc error"); if (!malloc_ptr) - malloc_ptr = free_mem_ptr; + malloc_ptr = free_mem_ptr; malloc_ptr = (malloc_ptr + 3) & ~3; /* Align */ @@ -253,7 +253,7 @@ static void *malloc(int size) malloc_ptr += size; if (malloc_ptr >= free_mem_end_ptr) - error("Out of memory"); + error("Out of memory"); malloc_count++; return p; @@ -263,7 +263,7 @@ static void free(void *where) { malloc_count--; if (!malloc_count) - malloc_ptr = free_mem_ptr; + malloc_ptr = free_mem_ptr; } #else #define malloc(a) kmalloc(a, GFP_KERNEL) _