]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: gup: remove useless BUG_ON in __get_user_pages()
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 23 Aug 2021 23:59:09 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:33:42 +0000 (09:33 +1000)
commitf879764f3de6b4b933c72b8d003952e7bd248774
tree663875fee2061d4f5f0c1ada7794d89bf268635b
parent63a40a64f8150b9943117aac7299f8921bdbcef6
mm: gup: remove useless BUG_ON in __get_user_pages()

Indeed, this BUG_ON couldn't catch anything useful.  We are sure ret == 0
here because we would already bail out if ret != 0 and ret is untouched
till here.

Link: https://lkml.kernel.org/r/20210807093620.21347-4-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/gup.c