Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9354786rwd; Wed, 21 Jun 2023 06:30:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wTYnRokKekaIX3w0A3/XjABApwdnsB3vooP1xizpR/kBNHzrED0HZYePriV6Pj8M34kap X-Received: by 2002:a05:6a20:3d91:b0:100:60f3:2975 with SMTP id s17-20020a056a203d9100b0010060f32975mr20509429pzi.4.1687354212810; Wed, 21 Jun 2023 06:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687354212; cv=none; d=google.com; s=arc-20160816; b=vfTsMkb7FHfXmRmEKAvx7mECwixv9uPAi9l9yihPfRrF4hIt0v4C0Dc9Eotv6zrhD7 tvTrDVLJM/T3///aFONCLQnJZ/tzWG9a1NEXkaAEFt4b2lNxvs/mRC6/bioEjqenT7KB hSVoRkNpUtZ+CpZOqsSUfsfDjxdworM43yQm3xwImo5vj2x4gJQ7hqRfe3cvhXwJpEE0 UJBGHpJvLDJ/RTethfOesnkjqIGEqAu1ZDx1cGx98mxyrBXr7M7/nwcqeg/DDJNpw58X uBCBqYxAp1RcJaPnVLqJhPyZGR5YCgcg9ldjnKnj7/GVJaE8wOEhtMupgk+NY15CYBD7 4oRA== 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=p1snc3z/xTJ1VfTgS+xUuvVWJtWsmykCdplUwtlGRSE=; b=X/7diyKaTZ0YXgyk3A49XV0YjKACpFHD4+ZANE89mjjYX4VMiXOXac9Z41i40QoQD/ nVOF7KMczRiTopyf1+gERpN2vbAKn7GJinXLROEdHw2YXOGUiQbRwU04BSwTcRpSmS2o i+fBt/OQfD4eXNPZV1iU8gR7pilSXSiNACIa18BhAldip6jnaUzzbKcbILFBDAvZsjRX Cm+st3gBEzdN6pg3aIQfcZOxH48ibDHEngWK7ep6lDYJaaCzidFVZNBZkNNyf+muP8iS HOYVzeBCvCoUQKt6bXPSEFwAj8rBhX/SFO3Fkm5piYmcz3ux9BvyjWQCFs2+E9PmTpLc n0qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Lv4pPl5d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v22-20020a636116000000b005572893f256si2192309pgb.269.2023.06.21.06.29.59; Wed, 21 Jun 2023 06:30:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=20221208 header.b=Lv4pPl5d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232144AbjFUNDF (ORCPT + 99 others); Wed, 21 Jun 2023 09:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231694AbjFUNDA (ORCPT ); Wed, 21 Jun 2023 09:03:00 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB7D10D5; Wed, 21 Jun 2023 06:02:59 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3111cb3dda1so6754356f8f.0; Wed, 21 Jun 2023 06:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687352578; x=1689944578; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=p1snc3z/xTJ1VfTgS+xUuvVWJtWsmykCdplUwtlGRSE=; b=Lv4pPl5dm1tsCSiRwC/EEKizLn2tjonFfrmr7Oafj5RDquW7/Ldy5JXUJ8F0yhXkc1 0ci9gANBVnN3QjvRMNMK9oBQ/9ET93rXCqnGxOmfxpUbEcicRtPwyOJ3wQ/wdSb6gIBQ VIZykLT714hMtjOr9RyqgpNHJw7xxpKzoL+oWLgPXcewKCg9e3Oz5cFWQ8X/CbUWVoKW A3T9SK5CRgsPQe1H5O7agHVTpp9ajp/9calCpm8iEXyCJdXOaGPhQh03ma1uaQ8E65jo nyyj9jZlBiIFuaegbONQDlVBg7UK/ZAMu0rXnzJY0Et/1eYjgw3Ur6ejQZbF1B68NfKk aYHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687352578; x=1689944578; 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=p1snc3z/xTJ1VfTgS+xUuvVWJtWsmykCdplUwtlGRSE=; b=as8PUm/V44zwteEOxPf3q1D75TMb2JKbOOCAmk5sUvgJlKf+KAP9eK36l1p/iCu7nz a/PU/Mhj8HcGCODuJ1/zKrxctsyoUEu1Od0cEIVTI5ffCxwxdJcPSeRQsorr8wTz9UeE SNLOyoruMpixcn5WRZAohbcQDEK+lcWBgUVjA3bWFMsfHQ9ymXvebY2NO//LTm6DwxHP aou3RwXE2HdVXWFMYnSQSq1PentR+MSfWFc4CAHRDuhn3EG6eyF1KQt/ItDRJudAViEi 11hF6owvUIAQwoC+LWQQ64G48QfLNKVhHPz2TQZUFB91AdW3YUUke07fMwqDB8L82c0C JR2A== X-Gm-Message-State: AC+VfDzI4iC61evtxWVj994+2TgjcInrmZAbvOpgUEkuwx0FNR5D7jDk RA8eseO5gJ0Rz0fnMV6wTKQ= X-Received: by 2002:adf:f30b:0:b0:311:1390:7b55 with SMTP id i11-20020adff30b000000b0031113907b55mr14800141wro.68.1687352577531; Wed, 21 Jun 2023 06:02:57 -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 w18-20020a5d6812000000b0030ae69920c9sm4413853wru.53.2023.06.21.06.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 06:02:56 -0700 (PDT) From: Colin Ian King To: Dan Williams , Matthew Wilcox , Jan Kara , Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, nvdimm@lists.linux.dev Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] fsdax: remove redundant variable 'error' Date: Wed, 21 Jun 2023 14:02:56 +0100 Message-Id: <20230621130256.2676126-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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-kernel@vger.kernel.org The variable 'error' is being assigned a value that is never read, the assignment and the variable and redundant and can be removed. Cleans up clang scan build warning: fs/dax.c:1880:10: warning: Although the value stored to 'error' is used in the enclosing expression, the value is never actually read from 'error' [deadcode.DeadStores] Signed-off-by: Colin Ian King --- fs/dax.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index 2ababb89918d..cb36c6746fc4 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -1830,7 +1830,6 @@ static vm_fault_t dax_iomap_pmd_fault(struct vm_fault *vmf, pfn_t *pfnp, vm_fault_t ret = VM_FAULT_FALLBACK; pgoff_t max_pgoff; void *entry; - int error; if (vmf->flags & FAULT_FLAG_WRITE) iter.flags |= IOMAP_WRITE; @@ -1877,7 +1876,7 @@ static vm_fault_t dax_iomap_pmd_fault(struct vm_fault *vmf, pfn_t *pfnp, } iter.pos = (loff_t)xas.xa_index << PAGE_SHIFT; - while ((error = iomap_iter(&iter, ops)) > 0) { + while (iomap_iter(&iter, ops) > 0) { if (iomap_length(&iter) < PMD_SIZE) continue; /* actually breaks out of the loop */ -- 2.39.2