Re: [PATCH] mm/hugetlbfs: Remove the redundant -ENIVAL return from hugetlbfs_setattr()

2017-09-29 Thread Mike Kravetz
Adding akpm on Cc: On 09/29/2017 07:54 AM, Anshuman Khandual wrote: > There is no need to have a local return code set with -EINVAL when both the > conditions following it return error codes appropriately. Just remove the > redundant one. > > Signed-off-by: Anshuman Khandual > --- > fs/hugetlbf

[PATCH] mm/hugetlbfs: Remove the redundant -ENIVAL return from hugetlbfs_setattr()

2017-09-29 Thread Anshuman Khandual
There is no need to have a local return code set with -EINVAL when both the conditions following it return error codes appropriately. Just remove the redundant one. Signed-off-by: Anshuman Khandual --- fs/hugetlbfs/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/hugetlbfs/inode.c b