]> git.baikalelectronics.ru Git - kernel.git/commit
include/linux/hugetlb*.h: clean up code
authorChen Gang <gang.chen.5i5j@gmail.com>
Fri, 20 May 2016 23:57:59 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commit7d12b3253539ff8c5c718d9090f71d0c6b806790
tree8b731c514818ebc3c232241c449914f846c3f651
parent88f8f1660dda680b95fddccde63352a3b39a36b5
include/linux/hugetlb*.h: clean up code

Macro HUGETLBFS_SB is clear enough, so one statement is clearer than 3
lines statements.

Remove redundant return statements for non-return functions, which can
save lines, at least.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/hugetlb.h
include/linux/hugetlb_cgroup.h