checkpatch: fix --fix use with a patch of multiple files
authorJoe Perches <joe@perches.com>
Thu, 16 Apr 2015 19:44:50 +0000 (12:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:58 +0000 (09:03 -0400)
commit323b267faff4db5f2424b6c09ab78a272393b69e
treece7e14a8f0cf95104cbd18f99013c696b1108593
parente15f431fe2d53cd4673510736da7d4fa1090e096
checkpatch: fix --fix use with a patch of multiple files

If a patch touches multiple files, the --fix and --fix-inplace option
doesn't keep the proper line count and makes the new patch file not able
to be applied via bad offset line numbers when lines are added or deleted
by the --fix option.

Dunno how that extra backslash snuck in there.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl