Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1949093ybv; Fri, 14 Feb 2020 08:43:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwQmV+uOQbTYWoBvTfBrGjPb10/JiCbD+plKZpQ9uG2F3cQUYOgrqDZ4dsQrZXAw1q3UxOZ X-Received: by 2002:a9d:806:: with SMTP id 6mr2905687oty.90.1581698620658; Fri, 14 Feb 2020 08:43:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698620; cv=none; d=google.com; s=arc-20160816; b=Q0nmnib8T4mdoaPchaexBe0PEv10DN5E+2NZr9FCLSPVIiF4N8Bj3nwozdeD4iirSR kYit2cBX9YM7JFSGzp0QPcGPzNxLGp50XNdpy5WgoT6gvWkWvfkOakc5aGkbZK/4pDI0 jt/8WXrC+UNwHfwPJLY0lt0nsJqcEx9fv5obOxZ6Ud+Iqwhusn2HKiqUDHvA6jm8J72z Hxh9y0RYBQnHq/LWdhwBg4wr4UetiuHBQDCIztT7qFgPg7RoBEQ4jG3bp9mA8DKEkznT ENW0iL7CBrKnD99j0Pw/nYZaDezxdeeiBphuVblH0vKYSMwUK73WVa0ulwkAj5vuq2iM gbdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DCm5xx4G0iPdK0L7ld2Whiw1rfrLSoJVFCHjW1lqGWA=; b=MdHufx2FrsLHn45MJXZsn9re2Z0bm9vO0X1nNT6o6BJ0QFfPPSzlsYnIKZQO0SN+dm 84RljMN/il7Zon6FO5FREOlyYz9X8d8tn/o5Kz/oHY0OYji/br2VFQL6oInpwF9iE83U 8+lDsumk9V7TZp5KPI23KUhFckHry/aHdZJMUsB4j/yjvrHkRgSdMkKh3u54UjqG/6yf DuNijnLeVf7S6mFtnPmefb/R3FhIORCVT/yCqFIY+0RFvXAHSY4Gu0tp9+KNMKd6lFhv S7pv5mpMQU4CUZR24Re9GsbcsOztq2Fmu3KNbAFHyrqb8QsvTwRledV+4FT+bmgmj7js xB3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XQnB1P87; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d22si3102462oti.316.2020.02.14.08.43.29; Fri, 14 Feb 2020 08:43:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XQnB1P87; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2393928AbgBNQmw (ORCPT + 99 others); Fri, 14 Feb 2020 11:42:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:57466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405405AbgBNQWP (ORCPT ); Fri, 14 Feb 2020 11:22:15 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CA934246DC; Fri, 14 Feb 2020 16:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697334; bh=Bi9cwXXimFbWNix7aSP9cjB9eNvaXUe5lQELcxB3Lbg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XQnB1P87KLzLLxGGuS1SoqD/id2D9IpfQZLFZJqp4VC2+PLACDaO9Esfo2JKZVYsc 70zgiOmFltAq/3c9f1fCnj8q+nFnsUdNWriE0DO+8fMBjtwcdtYu+7RQ9cglft77Yg n6WORklmKWUsV9qLMF/ctXOQMHP5oq+xITgslLUc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: zhengbin , Hulk Robot , Daniel Vetter , Sasha Levin , dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.9 041/141] drm/gma500: remove set but not used variable 'channel_eq' Date: Fri, 14 Feb 2020 11:19:41 -0500 Message-Id: <20200214162122.19794-41-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: zhengbin [ Upstream commit a7adabeece570b8a566dd592219410456676796e ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/cdv_intel_dp.c: In function cdv_intel_dp_complete_link_train: drivers/gpu/drm/gma500/cdv_intel_dp.c:1596:7: warning: variable channel_eq set but not used [-Wunused-but-set-variable] It is never used, so remove it. Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/1573902268-117518-1-git-send-email-zhengbin13@huawei.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/gma500/cdv_intel_dp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/gma500/cdv_intel_dp.c b/drivers/gpu/drm/gma500/cdv_intel_dp.c index c52f9adf5e04c..af2cc63f3dcce 100644 --- a/drivers/gpu/drm/gma500/cdv_intel_dp.c +++ b/drivers/gpu/drm/gma500/cdv_intel_dp.c @@ -1593,7 +1593,6 @@ cdv_intel_dp_complete_link_train(struct gma_encoder *encoder) { struct drm_device *dev = encoder->base.dev; struct cdv_intel_dp *intel_dp = encoder->dev_priv; - bool channel_eq = false; int tries, cr_tries; u32 reg; uint32_t DP = intel_dp->DP; @@ -1601,7 +1600,6 @@ cdv_intel_dp_complete_link_train(struct gma_encoder *encoder) /* channel equalization */ tries = 0; cr_tries = 0; - channel_eq = false; DRM_DEBUG_KMS("\n"); reg = DP | DP_LINK_TRAIN_PAT_2; @@ -1647,7 +1645,6 @@ cdv_intel_dp_complete_link_train(struct gma_encoder *encoder) if (cdv_intel_channel_eq_ok(encoder)) { DRM_DEBUG_KMS("PT2 train is done\n"); - channel_eq = true; break; } -- 2.20.1