mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 19:41:19 +00:00
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>
This commit is contained in:
parent
a4a921aa5c
commit
7fab358d90
2 changed files with 1 additions and 7 deletions
|
@ -353,9 +353,7 @@ extern unsigned int default_hstate_idx;
|
|||
|
||||
static inline struct hstate *hstate_inode(struct inode *i)
|
||||
{
|
||||
struct hugetlbfs_sb_info *hsb;
|
||||
hsb = HUGETLBFS_SB(i->i_sb);
|
||||
return hsb->hstate;
|
||||
return HUGETLBFS_SB(i->i_sb)->hstate;
|
||||
}
|
||||
|
||||
static inline struct hstate *hstate_file(struct file *f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue