From: Ritesh Harjani (IBM) Date: Thu, 18 Aug 2022 05:04:38 +0000 (+0530) Subject: fs/ntfs: drop useless return value of submit_bh from ntfs_submit_bh_for_read X-Git-Tag: v6.1-rc5~289^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c547524852deb2eb29c1214174de9782c5b3b8b0;p=platform%2Fkernel%2Flinux-starfive.git fs/ntfs: drop useless return value of submit_bh from ntfs_submit_bh_for_read submit_bh always returns 0. This patch drops the useless return value of submit_bh from ntfs_submit_bh_for_read(). Once all of submit_bh callers are cleaned up, we can make it's return type as void. Reviewed-by: Christoph Hellwig Reviewed-by: Jan Kara Reported-by: kernel test robot Signed-off-by: Ritesh Harjani Link: https://lore.kernel.org/r/d82eb29e8dbc52fe13a7affef5c907ea4076aa31.1660788334.git.ritesh.list@gmail.com Signed-off-by: Theodore Ts'o --- diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index 58b660d..c481b14 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c @@ -527,12 +527,12 @@ err_out: goto out; } -static inline int ntfs_submit_bh_for_read(struct buffer_head *bh) +static inline void ntfs_submit_bh_for_read(struct buffer_head *bh) { lock_buffer(bh); get_bh(bh); bh->b_end_io = end_buffer_read_sync; - return submit_bh(REQ_OP_READ, bh); + submit_bh(REQ_OP_READ, bh); } /**