Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3462952pxb; Mon, 4 Apr 2022 17:47:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxohelOO0R8y+avAAhBPGd6I1B8RdgA5J/q4E0Rsg8dyPUOxtITMacyk2mLnYe3v3dVgLPg X-Received: by 2002:a63:4405:0:b0:382:173c:1b97 with SMTP id r5-20020a634405000000b00382173c1b97mr694296pga.532.1649119629776; Mon, 04 Apr 2022 17:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649119629; cv=none; d=google.com; s=arc-20160816; b=orBmd0qnHmQ9s9syrT0xRYQWsHEZ1Byp+cDAGGJDBBpMyNBZw9OcN8UrX9t/q3SfLq S/uewtzJDQHnZw5l4ccXgjlMJ9HhiIdP1dnmh5lenrz1ofUSngJQcKbLtmgFp9J1LGhB E3D2y/EtefGm3TYqd5BwgWiFOKLdXOA/mcowvGgY2gEWhplFzah6tq5YqOMIKnNVLaoq RVZH1YQ5a/Kvs+wITxDkP9bvn7FHKnkufBIELCX5rFIwjcDEHQgaqiA0tB7t4WXKPrHt ETR8Wb2L7ODKSjn2DLEnoyc2HQInUJppVB8sWc2UJNrJY+ZSMazz7HTEbHEnxeNdkX+w ee9Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Fsubz5SlxAuGM72VzibPMlOmxFez1kWGrcQSufu8qOM=; b=RPYT9C9fvUiSvvaM2CC1e+y6gPEWzmtZHgG0Wc9jcQPsyoGPr8o/aapBn9w1ulx/ZZ 6tuRVgFDJq9G1C9ewKHDR9L8f57o7JtL3jDvTqMl8jshh81ti+QM0wOjHGVQTZN4vMBT YJontTxNK1OwQZlOq7ew+JMOfwLHdST4sJ2OZozqZ+Q52JyOb0+aB/1eyqEyn4j/cUvl WjeUzzmCobaZc7dezMjeUfkQgj3msbg59DXeE6emvgmZyjh7kFpyfP4wiTfukqUiXtiS ufGKg09ZhxV0VycsNYqScwG1ghzJmfQ8dV1DDBuTKdr58z3J18E49COc9CeGn/FMip6l lA6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IsmaR8AB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e17-20020a17090301d100b00153b2d1647asi11204105plh.130.2022.04.04.17.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:47:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IsmaR8AB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA115CBE45; Mon, 4 Apr 2022 16:58:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350282AbiDBIts (ORCPT + 99 others); Sat, 2 Apr 2022 04:49:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230100AbiDBItp (ORCPT ); Sat, 2 Apr 2022 04:49:45 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A16781AA8F1; Sat, 2 Apr 2022 01:47:54 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id 10so3972230qtz.11; Sat, 02 Apr 2022 01:47:54 -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:mime-version :content-transfer-encoding; bh=Fsubz5SlxAuGM72VzibPMlOmxFez1kWGrcQSufu8qOM=; b=IsmaR8ABleRm+6oVe1mXzrlLfe3Bw4vh73ABlIp1KaXMC5Nwfxn+4XU94FiEQnS3gI AiINyw49kmdfDR9pziKbUf3jP4S/0Mlk03KDKQUCajsPA/wyw9JBAyg9EqkWQ+0AXKWs MbVNgVM/JU9d/d+N/VAJ0giIHkUX7ry1WaqZpCxy5+dsxxiribXc3jjyrXQCsIAlIHPh yP204MCS660glqc2IV4YfZ8ywvLwkcN9AxhlolvokhB27PlL4iQltqUaC2MjLGZRNssf hS05niVcV0jZT7nPnoC4Ns/hfENGD6CVO2Iv804tMpeSkVlXUeVtjDhIy+gyW5Br10tU B+Eg== 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:mime-version :content-transfer-encoding; bh=Fsubz5SlxAuGM72VzibPMlOmxFez1kWGrcQSufu8qOM=; b=kfZ/xxoeHbbaPZlqdJ7YURKcOrt7uQm3VNMBHSwBYR8ELcMwUkPPieAfc4Wd/pET8W yTX4rMGz3W0KbFzfFdX/C5K721o92RfsJHJCE2Y+BMErjNVakdE64WUpcGS4fvVxkHL5 DlinNIqdOmiXIFt62jiz+QLmV3zaTOQbQ5dsUyGp2xNCbiejVbW9/XXvOlfeMsYnr/A/ JloZ/bgAg4IdiYxZqdThSPLGfastju8i9EccsEy/VbTgH7UcYtB2g3lf1d5lSX4MJVqx 8XNVvAcXfjENoZM3Cga3mERx4qtAAnkB2L5PDhfK5APxSqEbKxNWQemOZMx8nOnuC6DZ w87g== X-Gm-Message-State: AOAM5336wOPTdQ6GBCs5mN5eL7fcD5l/Qx7vZVBG4+SymTnFquzbc5yf vP4+O0VOU+MOo4YKeOH4UJM= X-Received: by 2002:ac8:4417:0:b0:2e1:a82c:1a6f with SMTP id j23-20020ac84417000000b002e1a82c1a6fmr11148476qtn.375.1648889273627; Sat, 02 Apr 2022 01:47:53 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id x12-20020a05620a12ac00b0067d4bfffc59sm2510938qki.118.2022.04.02.01.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Apr 2022 01:47:53 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: lv.ruyi@zte.com.cn To: viro@zeniv.linux.org.uk Cc: nathan@kernel.org, ndesaulniers@google.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Lv Ruyi , Zeal Robot Subject: [PATCH] fs/buffer.c: remove unneeded code Date: Sat, 2 Apr 2022 08:47:46 +0000 Message-Id: <20220402084746.2413549-1-lv.ruyi@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-kernel@vger.kernel.org From: Lv Ruyi fix clang warning: Value stored to 'err' is never read in line 2944. Reported-by: Zeal Robot Signed-off-by: Lv Ruyi --- fs/buffer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/buffer.c b/fs/buffer.c index bfc566de36e5..b2045871e81c 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -2941,7 +2941,6 @@ int block_truncate_page(struct address_space *mapping, pos += blocksize; } - err = 0; if (!buffer_mapped(bh)) { WARN_ON(bh->b_size != blocksize); err = get_block(inode, iblock, bh, 0); -- 2.25.1