Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2472556pxj; Mon, 10 May 2021 03:57:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZIjUAumkV0BprNwCve0FIQLTRF9BgRVdcZlqIi11II6uHLXBGnwZwn2yy7mqg61bAI8Hx X-Received: by 2002:a02:1989:: with SMTP id b131mr21114540jab.54.1620644255881; Mon, 10 May 2021 03:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620644255; cv=none; d=google.com; s=arc-20160816; b=xCAcgap6qBYaOLDbLcz+kkK2cxM97Kg/uxIhYMARiFk76bl4cLWlPs1SVAO4usZp4d kalHnrrZBkLToEhhNCyjlbLVr9XbV739x2wzd6TR2/afZOscGSNL3WGRvhkD/tYg9B1u 96oeUAMWB5DN+uFNVYKOuLYjMafMuv9BziJY2uVM/VSa65OHYP2N1Kx01HOuPso1heKI CWMVh+OlZqHM7k2X6YHSb91/mWTaH6L382NIYFXHuGDAQeFjpUBgIZfpRhQk26N9wxt8 i/aFSgOkTsy2t2PiaxFvK7zNKpEnFukZffEQNNfKxO/kQjkj3ZTz8kBdwuObhqrmxqHn oVRg== 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; bh=VeMpANmWWRnhL2Lgqd05qyXwusnYMX8DUaAVhQNSe2k=; b=Da4bb5xDXeFQhP0kTyGfeQyB9l+JRo5fM0ifqlcmERofc3i86aPHjV5uC3SuJtGiWP syRxGEgGWb/U5l/er7HnZFhDuMq5RUk7pX89sF15O8tfJTo24poFfs03YsMKd1r6+n1A pXkMCLK1R7u/RnS2YBN3V1rN9QO65HKV60WJr39uT/o09uleyQo3UcqsmtcftxceBgWH 53+ZLD3utvL5H61oBm+6q36iYTqcvHimikGYvE+B01H/Qai0KFa8NEkiolzK/YqPdpFZ ObJkMKbwVOF/Qg1mE8Ttg7NwQXf57VOqugdefyMpQcPRCmT4cAiYLlL5axjpIx5RHXKt eBOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si17305866ilu.141.2021.05.10.03.57.23; Mon, 10 May 2021 03:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234492AbhEJK4e (ORCPT + 99 others); Mon, 10 May 2021 06:56:34 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:37605 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232911AbhEJKos (ORCPT ); Mon, 10 May 2021 06:44:48 -0400 Received: from xps13.home (lfbn-tou-1-1325-59.w90-89.abo.wanadoo.fr [90.89.138.59]) (Authenticated sender: miquel.raynal@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 40D6E240008; Mon, 10 May 2021 10:43:40 +0000 (UTC) From: Miquel Raynal To: Yang Li , miquel.raynal@bootlin.com Cc: richard@nod.at, vigneshr@ti.com, nathan@kernel.org, ndesaulniers@google.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] mtd: tests: Remove redundant assignment to err Date: Mon, 10 May 2021 12:43:40 +0200 Message-Id: <20210510104340.10883-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <1619604142-119891-1-git-send-email-yang.lee@linux.alibaba.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'c9118b2b5dace4e6966b0d15c5990a0720cf2e3d' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-04-28 at 10:02:22 UTC, Yang Li wrote: > Variable 'err' is set to 0 but this value is never read as it is > overwritten with a new value later on, hence it is a redundant > assignment and can be removed. > > Cleans up the following clang-analyzer warning: > > drivers/mtd/tests/torturetest.c:233:2: warning: Value stored to 'err' is > never read [clang-analyzer-deadcode.DeadStores] > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel