checkpatch: add sub routine get_stat_here()
authorTobin C. Harding <[email protected]>
Tue, 10 Apr 2018 23:33:27 +0000 (16:33 -0700)
committerLinus Torvalds <[email protected]>
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/[email protected]
Signed-off-by: Tobin C. Harding <[email protected]>
Cc: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl