Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4847111pxb; Thu, 14 Oct 2021 13:12:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXTuddq3jcb4RnrBvTor33+SHOEi47qOinvYG8waaP3qgYrQSgFJHytRTxJdzW8tuk0CN4 X-Received: by 2002:a17:902:b492:b0:13f:4f30:88de with SMTP id y18-20020a170902b49200b0013f4f3088demr6881562plr.35.1634242359963; Thu, 14 Oct 2021 13:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634242359; cv=none; d=google.com; s=arc-20160816; b=GVbRBt7hinntDZZRGXD0CCPYeo3zFwbl4+SoYvqBsXqJAN/JmCBhRijyQyj2eBN3og WtLBAXdjpU+RvPJ58UbBM19ICSGFB+vATn3sJ01Pk3adgzWR0GLXFfKqJzIumLP/MLyL +T+TaQsEiU9zpGtDwKxTkmJeNk7VP7Tge29xGL6T/OvJzebtMaDCd5NHYCdfcAFYYtZ6 u4W/eShq6kOLUtzD9uoH2FH8oaGMPVO0mfJI9Ups6olHg1FkxuIODCGGu9jTJLoRO8TT QO0joRZ27acwpj4romDSWJNXgI+EE8CqA+9GAmUxkaKw7P3byBPR64R3hJH+Vz8Y3/LR uHAA== 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=BqmDJrHFqBHxoTqS4hIwgHXRVxQ1I+vJ59gvb2WD7a0=; b=I40HBWV8k1mS2IfwWU63NosoIOUvJcUUnDUZue94uXnq/Kxk+knG8f5GT5a117+8Y8 v8+I/2U6nY2U8xTBIlTeqh7jdSiO2MUOvJUfKNXt4aStxTEOKJOiE1tzm6VCkp8ZELAU W9IynlNsuW4sXPcFhbsElQE6gNsIWxqt0hlAY8KEKEMUiCl9kMGb4zLPnD2nX5ZnpF0J geZHzXIJopg7WisVNLlvvx6PTTX66z1K4PYgH+Y0DtYLQ6QNXSDp2S8bGWgKy0chAMR1 /pYigIuaIraFZYj7N4l4VKQciKi8vzhm6e2VUTKyq0wqtZZMxtzhWrNHLhfBSKfEBK5R JQ0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=MkzfKoov; 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 q8si7217525plh.294.2021.10.14.13.12.27; Thu, 14 Oct 2021 13:12:39 -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=MkzfKoov; 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 S232993AbhJNPfA (ORCPT + 99 others); Thu, 14 Oct 2021 11:35:00 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:43736 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbhJNPe7 (ORCPT ); Thu, 14 Oct 2021 11:34:59 -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 C1C6B3FFE6; Thu, 14 Oct 2021 15:32:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634225573; bh=BqmDJrHFqBHxoTqS4hIwgHXRVxQ1I+vJ59gvb2WD7a0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=MkzfKoovTsEGdBHrbxWaw1qLu0OfDJMw3Ux96i+x6PK7LonLBNDuK7FRoegpbnBNq TXDeUriYaZE7yiOEGSvo9MtKSxQ29r/bCIpjp+XudkP8kLVirfnNn18t38z4xZ8vWA tO6cfdTv+bF/RgW4S+jKfvoH5Mcu8P1ZpwdFcN82Ry56bCgNxa3EgZQTEQCrtyjh3Y FkWLBcg1gIxw2wDXcnM6mhx0TMmZbnNaoKCr8vQpwRd+l16i18gUCySAKQdj88CkKl PT8of/7ylY6/qmnrDO89nE0JKXaeQBJsDIkfcZCrMzQe6cauagifEqOusLqpko4Esz WEzNR2D0PuDzA== From: Colin King To: Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: dvb-frontends/stv0367: remove redundant variable ADCClk_Hz Date: Thu, 14 Oct 2021 16:32:53 +0100 Message-Id: <20211014153253.63527-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 Variable ADCClk_Hz is being initialised with a variable that is never read and then re-assigned immediately afterwards. Clean up the code by removing it and just returning the return value from the call to stv0367cab_get_mclk Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/media/dvb-frontends/stv0367.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/media/dvb-frontends/stv0367.c b/drivers/media/dvb-frontends/stv0367.c index 6c2b05fae1c5..95e376f23506 100644 --- a/drivers/media/dvb-frontends/stv0367.c +++ b/drivers/media/dvb-frontends/stv0367.c @@ -1797,11 +1797,7 @@ static u32 stv0367cab_get_mclk(struct dvb_frontend *fe, u32 ExtClk_Hz) static u32 stv0367cab_get_adc_freq(struct dvb_frontend *fe, u32 ExtClk_Hz) { - u32 ADCClk_Hz = ExtClk_Hz; - - ADCClk_Hz = stv0367cab_get_mclk(fe, ExtClk_Hz); - - return ADCClk_Hz; + return stv0367cab_get_mclk(fe, ExtClk_Hz); } static enum stv0367cab_mod stv0367cab_SetQamSize(struct stv0367_state *state, -- 2.32.0