]> git.baikalelectronics.ru Git - kernel.git/commit
mm/filemap: simplify generic_file_read_iter
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Feb 2021 20:02:45 +0000 (12:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:28 +0000 (13:38 -0800)
commit6f0f582ef08b13c7d244ea1f4f25b76ba6bcee7c
treeb2b3eccd816c71391d69056639f8128bbe762741
parenta5fd003c70844e9f6a9cb1b6e32c9b102d618923
mm/filemap: simplify generic_file_read_iter

Avoid the pointless goto out just for returning retval.

Link: https://lkml.kernel.org/r/20210122160140.223228-19-willy@infradead.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Kent Overstreet <kent.overstreet@gmail.com>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c