Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp634556pxb; Fri, 15 Oct 2021 12:40:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKzjoLQYHKITr2X6TPkpE0X/3SI+bSh+yJN34gjz6XTfsRX55THPHuos9zlhNKI7fPF2XS X-Received: by 2002:a17:90b:782:: with SMTP id l2mr15768288pjz.190.1634326846112; Fri, 15 Oct 2021 12:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634326846; cv=none; d=google.com; s=arc-20160816; b=M5F9ikq8bC50mLTLnktDwNERDvUEFR8hv/B5YZHG1v6sO2V6LoXck8y7jguWbgh6hk mejlONC782xRr78LON+Qvhhx2wNjyVDen1ALXR+JPccf+bobyJNwrPs3t1kTFYTw8dpw zi/71MpdhM7n+MO5MXWfNGI9SExhmvmswdg4Rg3Y8OdhJfH19Ajwrjr5R8VMmztCRABj g6mYn7leykG7HO8NFw1Zmj1kj/SdzB1QLcSUnSeiKAo1ghd5EO/zUr+mLNuc1ZRoXSVZ ix7/B3ohKe+Rm0YJoss4Jnox1pBpFY1ogO7/ZnnW0XsrxN7RGvYrKvzwu/jFdxM008sp JHfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=oGIJzHmStjI5LU6lxCeh0oZFUhLlPTua3uws4LONfX8=; b=smmEB1q//bIJyZ3G3dep6DsE72qRofXqII+ER55X6WVJxShAdpzYaHm7LcksL7Je1+ AMaZpC+f430Xbse3VhPfJRkFkaC4d767/lk6eix3wX7a7m6wfuj/25wqQaG6QDkNOBM+ QPHg5jb4gmOIjIDZarIbxFnBgS7StgXDfw/lMdRbpcBHOjkwC0GkumC/CoXHYU09w2dD ba0pmY/DIhWv4HOyGT1MhwT22LofhPKTV3oacp63IQ0Ognwtlcr21clFnON74u+3PSgO 1UCYdlIZaxiwuYgyboT9aGTvtLxLm8dxGteJ51aXrF1Il/3PgClbcUu0LZCtKtp0uKk9 99Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=iXD2cF3Z; 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 r23si9149986pls.210.2021.10.15.12.40.33; Fri, 15 Oct 2021 12:40:46 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=iXD2cF3Z; 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 S238225AbhJOLDi (ORCPT + 99 others); Fri, 15 Oct 2021 07:03:38 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:52106 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238196AbhJOLDh (ORCPT ); Fri, 15 Oct 2021 07:03:37 -0400 Received: from pendragon.ideasonboard.com (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4514B2E3; Fri, 15 Oct 2021 13:01:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1634295689; bh=6i9L33rCLOxyXyIbswmYDzQNFJaXeBH+sGFsWnXWrsw=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=iXD2cF3ZyPjZWtHIIE3zGAmXDl/byb/tUdR8rOhDu0NE6Mx4B1h6A41TXrwzCO+jN Li/h+asHS5Nr1rhi2AONzPbjna+CMRkrWmCTTHnzg9JO+akdd0NoefktNTBEPGdEDr s2ervREjzHLxk36fzFxxr616eUa5TTpiSN/aoYJw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20211014151235.62671-1-colin.king@canonical.com> References: <20211014151235.62671-1-colin.king@canonical.com> Subject: Re: [PATCH] media: drivers: cx24113: remove redundant variable r From: Kieran Bingham Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org To: Colin King , Mauro Carvalho Chehab , linux-media@vger.kernel.org Date: Fri, 15 Oct 2021 12:01:26 +0100 Message-ID: <163429568660.4164224.1248800864545725818@Monstersaurus> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Colin King (2021-10-14 16:12:35) > From: Colin Ian King >=20 > Variable r is being assigned values but it is never being > used. The variable is redundant and can be removed. >=20 Indeed, it gets re-assigned at line 385 as the first cx24113_readreg. Reviewed-by: Kieran Bingham > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King > --- > drivers/media/dvb-frontends/cx24113.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/media/dvb-frontends/cx24113.c b/drivers/media/dvb-fr= ontends/cx24113.c > index 60a9f70275f7..dd55d314bf9a 100644 > --- a/drivers/media/dvb-frontends/cx24113.c > +++ b/drivers/media/dvb-frontends/cx24113.c > @@ -378,7 +378,7 @@ static void cx24113_set_nfr(struct cx24113_state *sta= te, u16 n, s32 f, u8 r) > =20 > static int cx24113_set_frequency(struct cx24113_state *state, u32 freque= ncy) > { > - u8 r =3D 1; /* or 2 */ > + u8 r; > u16 n =3D 6; > s32 f =3D 0; > =20 > --=20 > 2.32.0 >