Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2673382iog; Mon, 20 Jun 2022 02:05:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sSUL5qEGVkKuMMk/bLnfabbwRk4xkKMr1v7xm//hI3P2WIqhJIMI3tZnjmIcLDd8Xil3wU X-Received: by 2002:a17:90b:4b82:b0:1e6:7835:2f05 with SMTP id lr2-20020a17090b4b8200b001e678352f05mr25423848pjb.121.1655715955190; Mon, 20 Jun 2022 02:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655715955; cv=none; d=google.com; s=arc-20160816; b=qd9xXWEpq8kjPFxfIC7jb5F1JxiCwzXxhdmCKdp0D0tKfiu0kPcU5MLlVYFK5XpUZU dEp05MJI/3F6S4vhdpU0BcVth/gJLG4ZzV8SmfQhpjfyIwCQ0snrPr6n9ZMaIHZU3AIb G4xSVS5vJqYWZyk+73WcKLe4YEwlluFt0eK3UG4RlZulNzIGbgbsiznXflsKYDw+o6J4 7N5oxOXMiy94gskmPDvGx+vq2+PFvOzjW7SwBnncQo4l5Lytr3BuQIR4H1FgyemU1KPO twetGWGqQWRyQrxYvgw3LFflg8Soal6qAT2gWtRjgf8y9CcK7EJcso7KizMCHygltWHM Iqgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JcQlji3Cx+j7uayBebQyTWGNyA+9EAfDG0gMAxfScdY=; b=cucyTxeWhrmHgA0VERGRYGGP8h7twkEyOwdIyeG5TnA8vqqobVW5f+JVOkdDgmpo3W MP+YrXxxLacgU7Gr8X/FJ48ZSXKdYCzqkRyRqhWCMy0EaiKKl0/uOhor0FT50/6FA0Fn Abw7g17eEGH2MDrtSDdu9xuhqocTc63ZgURKbk/iJhcPjMC95VU1MUuTJVxedXQbEIpn NZJbzG/SDMSjfsq956FOTaTOocWjneAhhK2nr5ZkcHaDYjVKp9OlFQjhUj/Ruv3Qmelz CniSyHlqQ9SsNcnhfl5xtGmf2QFB7KYfljjRTl5Zf2JpIZD8laUHEaFIoARQue1zk8O2 DClQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hMF0YeBQ; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a056a00084300b0051bfad76f55si17207071pfk.348.2022.06.20.02.05.40; Mon, 20 Jun 2022 02:05:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hMF0YeBQ; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240475AbiFTJFK (ORCPT + 99 others); Mon, 20 Jun 2022 05:05:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240474AbiFTJFI (ORCPT ); Mon, 20 Jun 2022 05:05:08 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DC0D103C; Mon, 20 Jun 2022 02:04:58 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id m2so1917886plx.3; Mon, 20 Jun 2022 02:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JcQlji3Cx+j7uayBebQyTWGNyA+9EAfDG0gMAxfScdY=; b=hMF0YeBQsMuGkQucRNSSxO6r56Chmy9P8vzkEn5YcXpVN+G3biF3IBUwvoC+a9NwBw 6MeDckSTwmdtr21aSRYyxNtrOuVMTtP+ZlAHHpHdZF9q+UfJKiypKlgWgu5NnS1K/x1z yZ5ljee7VnjnYje+S3SUgeTL5CNSpXOGhBTMtxY4GMjmb/f42QwcNAQZ6OGOPlGAlx4J NHu/2YGcmGkdChA794qn9JcYiNRMCQ2nmqe+RiqCPZ/w+jiNjq/SjOfdMJOug70i9/5M HSREI9P2YFbpfRoClHygDV2cXFoCYs/3+jd/8qY84/W6EqP4rkuCig9yW6Nh9DCePZVc q3aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JcQlji3Cx+j7uayBebQyTWGNyA+9EAfDG0gMAxfScdY=; b=1ZjpgBP9I0DjlDIeDmnqd8+hfzY8eNSJvTV+Mb5XyD+BKpfS62Q0xplAO/Gh4TvYWk BWxSY+hiVbaVp+dg6hdzsbIECFizumx7uMr81d2todYsQDFp+S9zEezWVpb4f3kUgmq9 7iCpArF7xBnSIbybB7BCIW/LVfdJvzCr5gr+EO/dIIL/w/KEsVOmgJPNQPG+WVRulOxp T+ceeA4C8st6w91e1SFRHpwnWsGvsFJVxqXM2Kg6ZuBkfVSAve+l7OilT3A9zaSbk2F0 6WP4uIDIpTN+VgLuYdRAu7DjzRQzz/L+FmCCGxaEgdJDkIJ+ynYmYMY2RsoseXKKgGqy InPw== X-Gm-Message-State: AJIora+maaRTTOw6k1olVgKGF6Vs0xzdKoYZge+oMQkuBD922frzRMyx UUfdbe8LMUqAijt322xILqyFGK7O3yk= X-Received: by 2002:a17:902:e74b:b0:166:4d34:3be3 with SMTP id p11-20020a170902e74b00b001664d343be3mr23078957plf.102.1655715897943; Mon, 20 Jun 2022 02:04:57 -0700 (PDT) Received: from localhost ([2406:7400:63:5d34:e6c2:4c64:12ae:aa11]) by smtp.gmail.com with ESMTPSA id i67-20020a62c146000000b00524c5c236a6sm2308583pfg.33.2022.06.20.02.04.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 02:04:57 -0700 (PDT) From: Ritesh Harjani To: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: Jan Kara , Alexander Viro , Christoph Hellwig , Ritesh Harjani , kernel test robot Subject: [PATCHv2 2/4] fs/ntfs: Drop useless return value of submit_bh from ntfs_submit_bh_for_read Date: Mon, 20 Jun 2022 14:34:35 +0530 Message-Id: X-Mailer: git-send-email 2.35.3 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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. Reported-by: kernel test robot Signed-off-by: Ritesh Harjani --- fs/ntfs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index a8abe2296514..2389bfa654a2 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c @@ -532,12 +532,12 @@ static inline int __ntfs_grab_cache_pages(struct address_space *mapping, 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, 0, bh); + submit_bh(REQ_OP_READ, 0, bh); } /** -- 2.35.3