[PATCH v2 1/3] checkpatch: add sub routine get_stat_real()

2017-12-05 Thread Tobin C. Harding
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() Signed-off-by: Tobin C. Harding --- scripts/checkpatch.pl | 31 +++ 1 file

[PATCH v2 1/3] checkpatch: add sub routine get_stat_real()

2017-12-05 Thread Tobin C. Harding
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() Signed-off-by: Tobin C. Harding --- scripts/checkpatch.pl | 31 +++ 1 file changed, 15