Message ID | 20210113145009.1272040-18-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp598170jap; Wed, 13 Jan 2021 06:50:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZqNSA6whgkPjesS4D5vDlyHtIYJOV/Vgqj/CmCynSQNgWOMN7zGp5W3c6wfUAhSMz631P X-Received: by 2002:a17:90a:43e2:: with SMTP id r89mr2886060pjg.38.1610549449896; Wed, 13 Jan 2021 06:50:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549449; cv=none; d=google.com; s=arc-20160816; b=TCx3WVCMMInH8r46gb1vK7k1fQC6yrCN7yKXDvrZvs6PFhjgs6rC4CIDCSMG/uMmk1 PV/kICf2nfk2ulE6/N+eWPoTGNuI7cBLjNL9tJ+Qdwh0ODTCgPP95+fkjziiyMvQhmD8 iBDb1e1DQcjB7J3oJ8z4v9nVytVMQp5I5sHObtWLU8SSK/KsCZTgCqWx4GnNjss189LH ZzygLa7qjD1jRGwqyxd6Oht2HBO2H+4PfP5TsFt+7Ur+hA/OnEoZSB2lXgDqSFwwVIUa thIgA2JXZT2FeNqKVHR7VWdN6anqWrZUr9THrca6M7v4nBpIte926fg0lWFncIEfEQXu AYIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=+JYzbnKZ/P2/Se89DEeQV9fMn4q6cVzoKuBfqzFy1Zo=; b=aUfB6SBhSKman9zhEF3k6GbXwhP4j8h8JNeGB02Ap287rtMyQ6QylF3ZITZaEczupo 0eDAnRkOozEEYAJXQJp8+D33cJK3cwARQDwILeeAutYJ7Nbk9LM7A6EAPeTXnpTd87Xk 55n5wZ2d+K0ChuAz4bgBzSih2s8Ga6sSoB5wxAiVagUscSD3xezLMY3rvUhqJz9yxvlr aoKjkgcvFWI1pTGTXanDcP2MydwR+ofHhQPm/M+pzhUygjKEQJcxMz9QyDGXS9tGLxU/ 88wj+cVyZVq6LOwqBDtwUYLpgAaVZWvfm5A483u3LLW+UoCbSgFeGh6wyZTXhxlQta27 lwDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="P/TckwyC"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id s8si2285290pgp.84.2021.01.13.06.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="P/TckwyC"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 57CEE6EA60; Wed, 13 Jan 2021 14:50:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1D4226EA5F for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 14:50:41 +0000 (UTC) Received: by mail-wm1-x32c.google.com with SMTP id i63so1846011wma.4 for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 06:50:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fDDpX4Tq8YbOoBzLmaAPLoJ0FkV3kIft9xiJt5MwHsk=; b=P/TckwyC+Zpm96Xw3jhnQcTPN4yEDByRSGHhaDy4FTUtGMu06Iu1Lz1wyjqkxnYGD8 Ka0UeFrgp+iGG7nEK9sOqDisiaFpLSK1hp1DISbHIQX8TDn4GphpHRUfABx50dTEboH0 qeaFWlT7UN/Vu7aoSNXpYCaMFlK+DfSHuhMJjBshrb8gKl2yGkzp7JIUWGPZphFnEfly 608DGRjP7K/CPR0c/OxOSedMrPcUuDd1OSXearvHBAU6PUJXtpFKR1uPWbedCfsb9D0l VZxN7mXIKLzNxEZYF8QgplqX7VbOWBfbEy/IEpStDEkkgxcfNRAH9CcHckNWX7BTHpf7 EMTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fDDpX4Tq8YbOoBzLmaAPLoJ0FkV3kIft9xiJt5MwHsk=; b=XiOzTXQxRXkT+TxEIqVzEX4DZZvy6PM1C3Up6OiDU1Sc7RGP+LqZyxmkEB4GyGvN00 Y/blPYy2awy7dh9Y4xEc2/3zbSqoPtHste+7mqZbv/C/LoMrO+DCiUnpYfF8/YqdyGGZ 11xCV/FIlSLcOQXzisGmQ/geGDh95ky0Z3rGqBAWV68CUflbYXjjVFcox/v2f5jC76pU te2mOGiomusO0Zr3nBpvhRj6MH86j0ctnDV9Pk7wuBieS3kmgnnoDCLWtgXuC9MCceSA u8s5VEm9ZdccQ4bF7Slm6r1hhSVmGlp+knakonpnqUROem9pC6tNdsDhSudlXTuZbY+x wqoQ== X-Gm-Message-State: AOAM53288IZ03pW7nm5cp3mTaB/SF8Xcwg8po1XaQ/o9n5hO+Cm0QNwI BTNbTmeuTBkV935pjv/YSpusgw== X-Received: by 2002:a1c:a5d8:: with SMTP id o207mr2598878wme.30.1610549439832; Wed, 13 Jan 2021 06:50:39 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:39 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 17/31] video: fbdev: aty: radeon_monitor: Remove unused variable 'mon_types' Date: Wed, 13 Jan 2021 14:49:55 +0000 Message-Id: <20210113145009.1272040-18-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113145009.1272040-1-lee.jones@linaro.org> References: <20210113145009.1272040-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid W=1 warnings from Video
|
expand
|
diff --git a/drivers/video/fbdev/aty/radeon_monitor.c b/drivers/video/fbdev/aty/radeon_monitor.c index 9966c58aa26cd..5ff01aa389381 100644 --- a/drivers/video/fbdev/aty/radeon_monitor.c +++ b/drivers/video/fbdev/aty/radeon_monitor.c @@ -488,12 +488,10 @@ void radeon_probe_screens(struct radeonfb_info *rinfo, #if defined(DEBUG) && defined(CONFIG_FB_RADEON_I2C) { u8 *EDIDs[4] = { NULL, NULL, NULL, NULL }; - int mon_types[4] = {MT_NONE, MT_NONE, MT_NONE, MT_NONE}; int i; for (i = 0; i < 4; i++) - mon_types[i] = radeon_probe_i2c_connector(rinfo, - i+1, &EDIDs[i]); + radeon_probe_i2c_connector(rinfo, i+1, &EDIDs[i]); } #endif /* DEBUG */ /*
Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/aty/radeon_monitor.c: In function ‘radeon_probe_screens’: drivers/video/fbdev/aty/radeon_monitor.c:491:8: warning: variable ‘mon_types’ set but not used [-Wunused-but-set-variable] Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/video/fbdev/aty/radeon_monitor.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)