]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add sub routine get_stat_real()
authorTobin C. Harding <me@tobin.cc>
Tue, 10 Apr 2018 23:33:20 +0000 (16:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:35 +0000 (10:28 -0700)
commit6c162bae38da133462b5b1019f4125b403bc4a18
tree4a1043a371836311629bc80af99b5a229e1b3983
parent3d01a82e008b4c1bfd49f68edbf0913defe20616
checkpatch: add sub routine get_stat_real()

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_real()

Link: http://lkml.kernel.org/r/1519700648-23108-2-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