Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3013319pxf; Sun, 14 Mar 2021 21:28:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXoosLxm4XLhll1KSuJ8jfybHoe9fq1lhO0RWZxic4Qy8qboF7od1XSFtR4/MZSrXh99w8 X-Received: by 2002:a17:907:7651:: with SMTP id kj17mr21610305ejc.127.1615782536637; Sun, 14 Mar 2021 21:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615782536; cv=none; d=google.com; s=arc-20160816; b=lHC1vcsmSg2a7PYN54eSBCBNctV9XZGbj7IHgBCbyNdaly6eRoiMK4OsQtkBIXZclf BHUJdEFZXrsPbTxt36P63FUgdWBEPhNXSFgYJZm1RNM15t9aRtCC3EzfGC5cQ0gpFSa7 OotJ2Tf3uiKTTL5GL1OFatr22z2JLQ7XQlhIAVgGBVujT6y+tHQr9KKqbHZ9x3hLQ+RM Ivkq5qzRaPDXWzkJ3ydkGHTvuBES0E2+gUugVX3J5Yp6OMifHI1XOPL1GtREDTI4P0MV 3gU9eYVWI+LQlw9MI38JCpEwg995S/iXMxrlY9PuE4425hvkipZlJpSKVxvuIpFGYQrN EJ1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/eSOU+1nWxXJJv3HKPnbVTzcV1DnWO1O3It+2PfEOcY=; b=E2aTahGk8QoHnRpw6RuXqxo+gmpZzUTmnt4bfgaEf/ORSVmuqtSJOFfi8uRJ8glaI5 Mn+lbE8Vqb9+nh4j/Xn7oC6dcCENiea3nM0mx2VJgX/S054Ww7Hwd3V84FzYq7ja1PoX xhTA3o6vK/K2+ntwBxNHBqklWUykSyLPuqGnCLqT/CS+W/xB/imbws/Pvzw/ResgLJGw vHHGwmeOUgPBRhM0ZNBV0rr0lM//TYtbYU6yq/4Ei472v99B4YpKCELyeMAH+OneIB33 U+3cMK1NiW3j/xMzLUwuMRqN54vdRQ8IIFlNOmNBZTdAJhSOnH98RFINX3HEiyNeChsE obww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rLSpmBc4; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si9977143edo.395.2021.03.14.21.28.34; Sun, 14 Mar 2021 21:28:56 -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=@kernel.org header.s=k20201202 header.b=rLSpmBc4; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbhCOE1Z (ORCPT + 99 others); Mon, 15 Mar 2021 00:27:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:55822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbhCOE1P (ORCPT ); Mon, 15 Mar 2021 00:27:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 729C364E07; Mon, 15 Mar 2021 04:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615782435; bh=YxVCih2+45kiqJm7Jk94vb6LRaHawHoeKIg+0blEzps=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rLSpmBc40D3RAzbVTB3vSf9Fq8BJWf7nQpaxC7w3fPH+R/rPJMCNchWZESpumPaN3 oJTw05OoAAv1Xlg3jI6Y77qxIcOOjpXnaIAblhxJM64YJHVWgGfFEx4Ksqi117INxU SqS+TOTiyqCQwLCGz433pfyVPPpFaJDFmNuOoaxhlCuBQDCQCCdn+FeJWFKljAP0qZ shWalICwmkzzOVOL8ZdVjAiBV0Ws9LqoqJsgVGYKiMs6YVPvPbqWFgulARhJoqyIQW EijwMLqF64KpdpFsox8o6ONAGgGum5waUZK4ltMnCvurlueM3C+pYg32M37dK0BB+G 0i9RgoqROwi/w== Date: Mon, 15 Mar 2021 09:57:07 +0530 From: Manivannan Sadhasivam To: Colin King Cc: Jeffrey Hugo , linux-arm-msm@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] bus: mhi: core: remove redundant initialization of variables state and ee Message-ID: <20210315042707.GB81300@thinkpad> References: <20210311111727.8433-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210311111727.8433-1-colin.king@canonical.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 11, 2021 at 11:17:27AM +0000, Colin King wrote: > From: Colin Ian King > > The variables state and ee are being initialized with values that > are never read and are being updated later with a new values. The > initializations are redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King Applied to mhi-next! Thanks, Mani > --- > drivers/bus/mhi/core/main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/bus/mhi/core/main.c b/drivers/bus/mhi/core/main.c > index 2c61dfd01353..3faf8bade520 100644 > --- a/drivers/bus/mhi/core/main.c > +++ b/drivers/bus/mhi/core/main.c > @@ -428,9 +428,9 @@ irqreturn_t mhi_intvec_threaded_handler(int irq_number, void *priv) > { > struct mhi_controller *mhi_cntrl = priv; > struct device *dev = &mhi_cntrl->mhi_dev->dev; > - enum mhi_state state = MHI_STATE_MAX; > + enum mhi_state state; > enum mhi_pm_state pm_state = 0; > - enum mhi_ee_type ee = MHI_EE_MAX; > + enum mhi_ee_type ee; > > write_lock_irq(&mhi_cntrl->pm_lock); > if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { > -- > 2.30.2 >