Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp251012lqg; Thu, 11 Apr 2024 01:22:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWb+UiEmBahI0rcLvdfwYW84C4ooSqr46AXA2V+DhmZ7XjCZkThhMGnC7yrRcJvJNAwFoyXKJGYKHHVu2mB6tPqOc3a8tBWYWbHnk4SXw== X-Google-Smtp-Source: AGHT+IGT1jur6bFpHZPZGiZzIFGlYhEGHmLLNhKK7/Gtmpk2nLLMPHMSU5BmdexJvYjjpPasW3K5 X-Received: by 2002:ad4:57a2:0:b0:69b:3dbe:8755 with SMTP id g2-20020ad457a2000000b0069b3dbe8755mr2862533qvx.19.1712823757691; Thu, 11 Apr 2024 01:22:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712823757; cv=pass; d=google.com; s=arc-20160816; b=sQoTVdCG1Tr8OLhTZFG6kObDepEwtz2z3B6cnZ+uoWbBoO74aKZn6w+Cc21KOnmKjI V6F9dIEoiE0smdkYiK87Ck5UYWhklY0yFvNlUZ5mcN79bKpaJ5O63k7xPrTdc2/HUbeZ rWDcGH+TBzpOAfBFSMdrmk+D1RtfO2i25uXEclvMBm+1ezt4NL8WnBMg8gEJUgvnGNnx jW/zLTlgFBm76hfYkomhMdZbH6M49MePEWYpdyUNba0fKcuXmhXO0rVRAZ7fczASFFDc m6SIGhQ9JDJ7afFZSZi6Qft6zVd44+P0cov6XI+lanf/6Pfv7okVpDNv90HqZRCDbn1c zqZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dhjtr18YpvpNl+0DXhXZihTch1WA+4ae/97IvGu5iqc=; fh=hKxPkh5g5tW/4LcoU/J+Y6UPLC46+doUIX3QsiapH1U=; b=mur/pabFQMApsjdgm2XyL7zEX5qYVBYFVUhLn6gYVjs2eGjLIYQY82mEz4aHlYZyDK y/LTfVWiSlKOps5c1QG/Dzp4xFnRTNzlPlRK8k8NK01mKuZnH6J4hWnkI2XhyQwm5h8W PrBxQirk7TeDXAKqnrJNqc5fWWTqbo7WLatz9s5DdysHj8/yuG+C174MhbzXz9kc1I3R GkWmVtrEivYoNH8W+1yINVnjYN6HexF4GJTPzbOHSB5I7xW/q0ECA06MT/DoEvfOF/9i 2j2jhSoP/p8eKeGV5CehIFX1J7T+VfcTzTQzpjfl+p5CsMPyS39k2uNk63wEO79hmFtC nLkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nmohWyFi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l5-20020ad44525000000b0069b15c08caesi1001743qvu.587.2024.04.11.01.22.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 01:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nmohWyFi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B55371C215BD for ; Thu, 11 Apr 2024 08:22:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FD8713FD66; Thu, 11 Apr 2024 08:22:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nmohWyFi" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A4C213FD9B; Thu, 11 Apr 2024 08:22:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712823724; cv=none; b=fGXJbs2DL7eNmHQTio6ScLsgvosCrZetSQOcQJykJfvvcAbMecavATC6PFvw4RpfFXkLew6W92CpJjNWpfIQZVTJ4kHaHsfKp5uzQ0lpcI47O7T+gB+Z7anIHVvnrInlX3f+vJUF6E7HWYOc5mMk5/gPR/3lT+Ppptr1eBB71yI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712823724; c=relaxed/simple; bh=oNEmCk3yEkGjg2fPr9n0Fw4bPVs/3syG5A/ow4aPcao=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=sbfS1EhY9FBve4ELuS48kFE2IgM/fTf5aNEwavnAVE3mIZWpN4E3FS6rowLPG7Kz+1F8Bh8LCGXB1zSHu/uC/WWgC9B9tAZ4Z1dtsgBKlqhTI8sq3RbNXaUWq631nLveR9qEoDcjVv0IPvDsT2ZU3Abpoyb6sEhBmMRgSWsX2IY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nmohWyFi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE361C433F1; Thu, 11 Apr 2024 08:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712823724; bh=oNEmCk3yEkGjg2fPr9n0Fw4bPVs/3syG5A/ow4aPcao=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nmohWyFiMYt6tYR/aq+4GN4WPU/Yo4g0Wlcyu46TRJJjpTVHxh6aR/P+GzSEx0vI/ XEqj1RaYwbHZRO60gdN4N7tuDaq74woTDPBJeuVdjHD5lrU+mp1REds/H4L+fdmRmU IHh8avv0war3Au/ql8e7DzTAsxdNcTLLDRwtj3puTeKpK67K6HzcvCsYO/IMM1tPZ1 EbzMVXHNV9bbBRHXWyZUw2T6G8UyducqlgsIKmgwQLHyU6wuyJrM4Yhg/gt7fy8L+l OlHpQ1A+CPgBTldyL4R2QeAWqDFLMv8rNPo5DdFLElPGXfiRseSJd1oarI4kDLQnRb +fL8itWxnMSZw== From: Christian Brauner To: Colin Ian King Cc: Christian Brauner , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Viro , Jan Kara , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH][next] fs/direct-io: remove redundant assignment to variable retval Date: Thu, 11 Apr 2024 10:21:40 +0200 Message-ID: <20240411-anheuern-statik-18a9cb9ba524@brauner> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240410162221.292485-1-colin.i.king@gmail.com> References: <20240410162221.292485-1-colin.i.king@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1163; i=brauner@kernel.org; h=from:subject:message-id; bh=oNEmCk3yEkGjg2fPr9n0Fw4bPVs/3syG5A/ow4aPcao=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaSJz52jXtr0f8raipPvD4hqTs7jjxS8wbDPdcfv5d/2N TW/EfcI6ChlYRDjYpAVU2RxaDcJl1vOU7HZKFMDZg4rE8gQBi5OAbjJnxkZmnQe/D990+X1ivCN rdXa5zkNnu09FPvwu+GEMxuuNE2cncTIMLM5JX59ydqqLSfS1Ts/pJrIHvK9494YlL7IrbeW6Xs BJwA= X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit On Wed, 10 Apr 2024 17:22:21 +0100, Colin Ian King wrote: > The variable retval is being assigned a value that is not being read, > it is being re-assigned later on in the function. The assignment > is redundant and can be removed. > > Cleans up clang scan build warning: > fs/direct-io.c:1220:2: warning: Value stored to 'retval' is never > read [deadcode.DeadStores] > > [...] Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc [1/1] fs/direct-io: remove redundant assignment to variable retval https://git.kernel.org/vfs/vfs/c/fd0a133ef6ed