Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp392108ybg; Mon, 1 Jun 2020 04:17:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFjhvx6HzxcErrQWMhSaLa9dprze34A6UfGAW+kXnJv0Xi1fLcsILPmb4OtV0EFAW4MS1E X-Received: by 2002:a17:906:4d8e:: with SMTP id s14mr5175634eju.280.1591010241618; Mon, 01 Jun 2020 04:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591010241; cv=none; d=google.com; s=arc-20160816; b=B7jKYoiehSoL1sJhBEEhRM60Sk/JfGWFmIAMqRkqNmCSS5hvGWyrE8rmr4FH6DDioW 2z7t7ObFOqkf/fWD/Gyl5rpd66pG5p+RVdHTwp93Vkk0MywqApnXD95k66uJul3IJB50 P4VOXfxiuVNrOgmzSmXI5G9HW9zVyCCOt7AV0BNwN1XteKeLiWjEqbAwVo0rP4JnA03i O4ZW0PfdwfoPF029lublA7Mp5wBmoFd5bz89vVE2H6dYk94OYe4SrlvbK1End/bSKY/s bkVdNWJxwHkuGvBU9x878FrnfR9x26udFbN9WPGB7KZ69fCAnEiwS/B3yH9MRQCqDwXZ 5/Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OXZ/1DYRo+pu94KlRLN7nt0/Jhb4JRPyNAe/TLutDXA=; b=z1rHKoSMv+EIlvTuUJREhjCage+gkYbZwLOPhtDDEePfANTRjU6ERjM0L5yNYDfLRq npTwO9JzS1O9a8PKHI1CvrrmFSvuqQKEO8X/ZRzOLGliY94Zg12KWLFCjTNiGSmUc6kj MfIzJWIcmEz8ZkYsZnLujt5rtDPdv80Q5XK3SmkJ2dBYHykscrIHwUs6gSKIgHZokI1k JwZJAx0fge6FBTA5/EzVjJvKxRqJbKwFwqkB75Nc/i9l696Iv5lMtcI9eki4dQ1nCUqn WD0qQw9cKzNLAiCMiRIdaskEnAbYc1sp3UCGTR5pA2i3QZ27CsbQ2vDfcJIbHiax3IAI MfFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@omnibond-com.20150623.gappssmtp.com header.s=20150623 header.b=LKZL0Qou; 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 b19si9644353edr.258.2020.06.01.04.16.58; Mon, 01 Jun 2020 04:17:21 -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=@omnibond-com.20150623.gappssmtp.com header.s=20150623 header.b=LKZL0Qou; 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 S1726128AbgFALPS (ORCPT + 99 others); Mon, 1 Jun 2020 07:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbgFALPR (ORCPT ); Mon, 1 Jun 2020 07:15:17 -0400 Received: from mail-ua1-x944.google.com (mail-ua1-x944.google.com [IPv6:2607:f8b0:4864:20::944]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D51C2C061A0E for ; Mon, 1 Jun 2020 04:15:15 -0700 (PDT) Received: by mail-ua1-x944.google.com with SMTP id c9so2684570uao.11 for ; Mon, 01 Jun 2020 04:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=omnibond-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OXZ/1DYRo+pu94KlRLN7nt0/Jhb4JRPyNAe/TLutDXA=; b=LKZL0Qour/P3znlT11X6MSTa6a99kxJDMSO5oEuzh1urufoBk/cF8qaCaAXe2QzSU7 o+TAkmNpjAqy8QBkVVDWyY2MQf7jZV3Sh5yfmmn8AxRZqeXovzJiNaHsAVzkJkJbp0c4 xOcWqsh+4ND9g/cdr4emUuxzL7VBStoQv47qrX7kbAJczbJJH+M9ntwRVDPf9UWnQy0J JpeO55wc7hgIA6KQ5zR6fbuP5EPaptgIWLcCl9L8ym6u8sXM5Tj6e1wCaPtGGbKTRxn2 G3uT95sz/KJ3K0xAc8pFwhdZqDe3jkNHXZUrB5Se/v2+2CNH8Gpz/c3+6EBiz8z1pHYT gpPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OXZ/1DYRo+pu94KlRLN7nt0/Jhb4JRPyNAe/TLutDXA=; b=GDi3CcqQxjaDFw6keOaoxvFoQZOtnymH86wI+46kiCUdtP47DHTGE2igA7+99KFS4L 6pyxMFx0DHRZpQQGE8QA06elRYzFEgGw3812KkBABsia+e9TiomPuEVFAMOltGorRTjZ QocEuwBBUJNCveUwCoufk35jK730nMLzeeeOVhZlMC36N9h4spSnrb+jfhtBxjtdTVDO n+cxAvgI9khjgvUwrdDYxRSZnJmnx2B/gFOu7qx14iCC/iLa1MKYqJ2Fl2L+onunzBUq 1i263skOzPh0l8fMKfTZ4zMRb1I2+TstjCoVO6TEeapNLRyxJ+DRkF1pU51PzyPz2Yfs QI2A== X-Gm-Message-State: AOAM533QU891hBnCObwLVYIdpgLe1T4QPw2yvlEpKG0m45rkJuFtV2gp vfg2dRqgdfOpNZYexwyAah3UjC+178Eym5i+lvF7Og== X-Received: by 2002:ab0:548a:: with SMTP id p10mr13945454uaa.35.1591010115132; Mon, 01 Jun 2020 04:15:15 -0700 (PDT) MIME-Version: 1.0 References: <20200524224802.27850-1-colin.king@canonical.com> In-Reply-To: <20200524224802.27850-1-colin.king@canonical.com> From: Mike Marshall Date: Mon, 1 Jun 2020 07:15:04 -0400 Message-ID: Subject: Re: [PATCH] orangefs: remove redundant assignment to variable ret To: Colin King Cc: Martin Brandenburg , devel@lists.orangefs.org, kernel-janitors@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Colin... thanks for the patch, I have applied it to the orangefs for-next tree... -Mike On Sun, May 24, 2020 at 6:48 PM Colin King wrote: > > From: Colin Ian King > > The variable ret is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King > --- > fs/orangefs/orangefs-mod.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/orangefs/orangefs-mod.c b/fs/orangefs/orangefs-mod.c > index c010c1fddafc..289b648ae196 100644 > --- a/fs/orangefs/orangefs-mod.c > +++ b/fs/orangefs/orangefs-mod.c > @@ -79,7 +79,7 @@ DECLARE_WAIT_QUEUE_HEAD(orangefs_request_list_waitq); > > static int __init orangefs_init(void) > { > - int ret = -1; > + int ret; > __u32 i = 0; > > if (op_timeout_secs < 0) > -- > 2.25.1 >