Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp252189lqj; Wed, 10 Apr 2024 09:22:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYMERmarUtaIOgwwIujkr++4E262fcsBD2dSCc/H8GwWeOIAbAAfCiA+qxe8b0Ik9ycs4c9f8bgotdpQZqPcNXhmkODaF43CJGSN4Fkw== X-Google-Smtp-Source: AGHT+IHH9WjBkl4pCAZpNs1ue5Dnd9/i7uvEBkzMImoasogCcIyTNQYYAZwgdzzFdibdTQwYaQ5E X-Received: by 2002:a17:906:f6ce:b0:a51:beb9:956d with SMTP id jo14-20020a170906f6ce00b00a51beb9956dmr2107374ejb.66.1712766157728; Wed, 10 Apr 2024 09:22:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712766157; cv=pass; d=google.com; s=arc-20160816; b=wiaqn5DcmzKjWEtlKLvYe22DQXcecCrx48C1BRZjamrIeApXYpanJBSUm/F79NGXYP Ody5tQ6hUQCKey7rmNymkWO/LzbXZ9mJj6cwn6Qgbqee+UQGY7NizCRQ54QPBGlIRJe7 wvOYiZGieOKV+LQvJGjh6ddvwnUZhYDNpM5MdDud0qgmGP9HW9eiogUmzGKpi7KAZa41 ms6E54SdcTOadqzArvhU/DFuYiEl7s7wA/ZRyzhb3yge/xc3bmbGBGc0PsbQ+hQHzh3k QK+eEWZb47uat0RC3c6m3R4BTKNQTuPzozZv+sjChhAIXWTaNYPBFPCC+/FmRqjnWkFk nhQA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=Un0q94+0D1nSdkyt4bWQE/2WmNoTX3iVEbAyLwz3Yqg=; fh=NuKfQIhxJOJ0zsXabs0ccYqHEx8IoRgDT25HzEE+S9Y=; b=ky8PFuBPmV+ZMqsQwi2VRJFtEHbuq8517PQSE7t/umKMJwOovJXerY3elcnnHy9Z2j Vq6oh7kDOmfM7m4viCWJEP3zawEgBGJicWu8GPtp/1L8qwDkODyLRqfAugwNQV0nI0t5 6WVzvK8T0HMwFkv/36lfVJwDf8JOAZOok+SxUy6gfFinseDmWSSqkxJ5sewkbzQesrBX dRly8a1vwn4ZDk+ZYOp0E3mcRbXSWKFvfACcZUGxUDBN9OZj4dZoMFgOMQNKqakOlJOI XC3rcatjYwqnFjcz7beFbMexK0lBXA1/qa66uFN5fLL+APbQr3Z0bBN5w1iddsSO7lLx mZpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JBDbgWpU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-138966-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r27-20020a170906351b00b00a521327b02asi535571eja.601.2024.04.10.09.22.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 09:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138966-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JBDbgWpU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-138966-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6B7361F23C6E for ; Wed, 10 Apr 2024 16:22:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BD6017B4E5; Wed, 10 Apr 2024 16:22:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JBDbgWpU" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35DB916F0EE; Wed, 10 Apr 2024 16:22:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712766145; cv=none; b=ESCv9Itnup/wxvTkifvFn7ey2nX5nN6wKW0edxvASbCU/1BFfQm3krBlQzww44dqSNFE9vE/tZW8HHnBUi7hFx5jkkfVemErf3g+6RyOc7IDVrsxWbjF+OE0WqFGNqD/mb5/kroMf7FPx3Dpl9DDLI9JOiQUa3QvANWfqGAHj5o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712766145; c=relaxed/simple; bh=RSc60GGCkzefo7hAd7oUdI/LD2fJrAc/bWt6d7Qbuac=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=hJmI1up0+9vigVowUrUGxD6st2S4wHj77sEft8kdl2RuKnOBI3dIr62RUCTBZVCwPPm0LBUiXnzRocByo9/+frqjKVMu2Xw+mJ7m1ZWKUm6Yf/736edVKj6WWRVwNQefWIs2U7WQCCN3Y4mmzVaAzd8RsjhYWAVTgNFwk6nTNLk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JBDbgWpU; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-417c5cc6be0so2444775e9.3; Wed, 10 Apr 2024 09:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712766142; x=1713370942; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Un0q94+0D1nSdkyt4bWQE/2WmNoTX3iVEbAyLwz3Yqg=; b=JBDbgWpUunTNpdjAQPYLkuJByLNs8Ewv/GR0W7WOXyWXKYAb8Xi5Zb+BJgYo1cPmtH uQy/GfNIBDG2SBFAS/QO4BQmRATtbJeOikn8wDOt8j/AjcAAXHpPcQYIJJREam4F93xh 28oCKy5+Z1lsePu6S4ykUO10sn9MA1MLXgVT6a4Y3K3GCpvzujnXkjXQnaDcHknLv/W5 vTuhkqY8z9pGCyOYg/MlLlmjG/WzAS+fP2Tytp2sZSghjbZf+zzIabevBcew1xUUooyF Y7nmql/lqz4HR6BDyvAQ0E2ral9TRT/kS05UH9MoXqyt8wduh7KQcz/NV95KfUBmWyVM T0LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712766142; x=1713370942; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Un0q94+0D1nSdkyt4bWQE/2WmNoTX3iVEbAyLwz3Yqg=; b=IEHi7tv5UtWGN+CpRLtPLtxYSEZGKOo22kZJg+2WykOGnVGXxnIuFq0uP4sB5KXIV7 lOddFHln+6tnDpdGNyUyNm6Bgu5q5+9alHlWjFY4UOIMTwCEoZoRF0AYGvQxdRNF6uol dLKJBvjP1NVpiEkf/g32Q5VU/xZrWGgNXCKbkUeG6oM5bf5biPTrELLDIZzCXCYMoSct uqmDBe4KCgyRnjaz57BhTRf2RR/P/6nFkdhPAqsy7mDiva7g9DVuGB2jI1LrSx72b/qy QSOXo6iF140+k6Q3sEQ6paK6c5n7+7CPweFPoUSOVSotEDdv5HKUVsyxnPJXBxo77foI lvlQ== X-Forwarded-Encrypted: i=1; AJvYcCWxGfAYJUSUpW5qAPJvYFBEqTPiURyhbVVtJTv2UjnE1luBjlrkfAykboK+37XjEilv4GmF/NCFXKpntzU3QsN8U37BVtlTe3WBwhxQPS2L/e8Yzg2293aurnFxz75oZHBftAnS6iubpXOExA== X-Gm-Message-State: AOJu0Yz8egv/B8m2ePV3YKgBWjx5Q3/qGMUTbYxbuod7Hb+lqElUYYr9 WahvvROPVWVM/zKXolJ+XnK58zt3N7QBrLD0UbdNzs+P4cyDowHP X-Received: by 2002:a05:600c:4e88:b0:416:a6ff:bba0 with SMTP id f8-20020a05600c4e8800b00416a6ffbba0mr2509726wmq.11.1712766142309; Wed, 10 Apr 2024 09:22:22 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id y14-20020a5d4ace000000b00341dbb4a3a7sm14129528wrs.86.2024.04.10.09.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 09:22:21 -0700 (PDT) From: Colin Ian King To: Alexander Viro , Christian Brauner , Jan Kara , linux-fsdevel@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] fs/direct-io: remove redundant assignment to variable retval Date: Wed, 10 Apr 2024 17:22:21 +0100 Message-Id: <20240410162221.292485-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 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" Content-Transfer-Encoding: 8bit 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] Signed-off-by: Colin Ian King --- fs/direct-io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index 62c97ff9e852..b0aafe640fa4 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -1217,7 +1217,6 @@ ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, */ inode_dio_begin(inode); - retval = 0; sdio.blkbits = blkbits; sdio.blkfactor = i_blkbits - blkbits; sdio.block_in_file = offset >> blkbits; -- 2.39.2