diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2021-02-24 21:10:01 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-24 22:38:35 +0100 |
commit | d0146756a0993d3a01407b38cd87d965ccda72c6 (patch) | |
tree | 6befae289a5f85d4687d9f3fee5094785e8e93ea /tools/time | |
parent | hugetlbfs: remove special hugetlbfs_set_page_dirty() (diff) | |
download | linux-d0146756a0993d3a01407b38cd87d965ccda72c6.tar.xz linux-d0146756a0993d3a01407b38cd87d965ccda72c6.zip |
hugetlbfs: remove useless BUG_ON(!inode) in hugetlbfs_setattr()
When we reach here with inode = NULL, we should have crashed as inode has
already been dereferenced via hstate_inode. So this BUG_ON(!inode) does
not take effect and should be removed.
Link: https://lkml.kernel.org/r/20210118110700.52506-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/time')
0 files changed, 0 insertions, 0 deletions