checkpatch: add sub routine get_stat_here()
authorTobin C. Harding <me@tobin.cc>
Tue, 10 Apr 2018 23:33:27 +0000 (16:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:36 +0000 (10:28 -0700)
commite3d95a2a05afd6b51ade4686291b0ed8581dd5e5
tree5a0cb3cc7c0de0c2ab569482f0924420532d28ad
parentc2066ca350b32f1d3d69743c59099c6f91f7a559
checkpatch: add sub routine get_stat_here()

checkpatch currently contains duplicate code.  We can define a sub
routine and call that instead.  This reduces code duplication and line
count.

Add subroutine get_stat_here().

Link: http://lkml.kernel.org/r/1519700648-23108-4-git-send-email-me@tobin.cc
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl