Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1409990pxb; Fri, 10 Sep 2021 05:26:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiqMIlcfl4ZMdGtP5xugh8UnqIPfKUsGx+4tBJB6hBPn9DsyPf83V4NbwWJeFj46Rcae5O X-Received: by 2002:a92:cb8e:: with SMTP id z14mr6383486ilo.318.1631276792716; Fri, 10 Sep 2021 05:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631276792; cv=none; d=google.com; s=arc-20160816; b=Y129XJnnRNEUSOQjs8B9TmQYbUTGc72iTHIvHB3lr0RFmNFHDrYK5w4wpfTv2GlHCp 6XckbEdhX2Wj7Hx5OWuQi1kE9cG55ijJXDlvK1T8wWjOGOmFIs6PjNFzGMYe3xFwTCIC cUS88xOnf4biXGefYfMzEzRGjJngKzqEaJMrc+0wMExrPCKaCTEKHVo4MqbaSoMsHVsH 93kzW+j76PhUit5iQI7PBTrsjdOC+UDt0mNyAO+tSbMeG9anZA1E5wn84bWm0HnnhBsD kroyCOGRCrY+VLd6rz+8cipcgb4BD2coqlzA7dnTZvn1yLSF3vwDOwiyBKcJwZsRkNeS S8iA== 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=S5A5gVxFvNReba+sgmKpBhRQvbi0HishvH1Pn0fy9V0=; b=056NvPq6gZ//MAs02eU87Hq/ENxWrCrBuoym47Q/sjvwo4YpIKO0yIH330zhbCxcYQ 93QyP0nEOaKSD2KH1sNmP8DMF7K51jmiWB5MS46J0LVDi2/y52VMIWlddwVRgcmryRrD 1qm/IsFGk5ZVoVN1uFvQDhiTy3+jWC8zpLvPp75WeaCws/zt9lSG/YnPuL4LQwp9G1RY 9XxFYzt/Sw9zLA7mBSHcA1X1i+9ua7AtUATKGzFb4rAtHz7M2kCQ3NBZtF7/pcFMGm+H k9HQWOQcRe2OhuCdVQSlqXh7kCnyKwWdKdc74fFxQKn6Yd18sUWfiOEv3LnEeFp12NG+ l8Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=v+ZTMRGF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si4381211ioq.14.2021.09.10.05.26.20; Fri, 10 Sep 2021 05:26:32 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=v+ZTMRGF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233072AbhIJM0r (ORCPT + 99 others); Fri, 10 Sep 2021 08:26:47 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:39008 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232876AbhIJM0q (ORCPT ); Fri, 10 Sep 2021 08:26:46 -0400 Received: from localhost (1.general.cking.uk.vpn [10.172.193.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id E2DB53F224; Fri, 10 Sep 2021 12:25:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1631276734; bh=S5A5gVxFvNReba+sgmKpBhRQvbi0HishvH1Pn0fy9V0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=v+ZTMRGFzHJB+bxVdKXF4l5ly6MyYjdY8uqXPC7bCBiVzpkLD4lsmVT4k+t424lvI ClPHaUSXDEE2YVKE12C5Jyv/Gncqdxrt10t9MwRkdDY8R2xtLSCMloodi96R0oTdQy yYurP++OzKFFubBDpvG5trls2dyubFgpqKiPq6djZcDhJSDNuKvCna0YiZp+EEKgXO L9hzNfI9GUpmd6fRnR3tEHgtf9zkfQgMjhEoOx2OYFagtR2cqd/jHXwfG8/cBvk9fN 6nsj+Jmo52yzFLZe5yI5WN5blkz1qSrhRxY+vcW8pgrZYifhTzo0I7chhw1dFx+G33 VhQwkK5xYiurA== From: Colin King To: Mike Marshall , Martin Brandenburg , devel@lists.orangefs.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] orangefs: Remove redundant initialization of variable ret Date: Fri, 10 Sep 2021 13:25:34 +0100 Message-Id: <20210910122534.51449-1-colin.king@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The variable ret is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- fs/orangefs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index 2f2e430461b2..897fb6c3f161 100644 --- a/fs/orangefs/super.c +++ b/fs/orangefs/super.c @@ -475,7 +475,7 @@ struct dentry *orangefs_mount(struct file_system_type *fst, const char *devname, void *data) { - int ret = -EINVAL; + int ret; struct super_block *sb = ERR_PTR(-EINVAL); struct orangefs_kernel_op_s *new_op; struct dentry *d = ERR_PTR(-EINVAL); -- 2.32.0