[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1455576004-11839-1-git-send-email-colin.king@canonical.com>
Date: Mon, 15 Feb 2016 22:40:04 +0000
From: Colin King <colin.king@...onical.com>
To: Zhang Rui <rui.zhang@...el.com>,
"Rafael J . Wysocki" <rafael.j.wysocki@...el.com>,
Len Brown <lenb@...nel.org>, linux-acpi@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] ACPI / video: remove unused device_decode
From: Colin Ian King <colin.king@...onical.com>
device_decode is now no longer used, so we may as well remove it.
Fixes gcc 6 warning:
drivers/acpi/acpi_video.c:221:19: warning: ‘device_decode’ defined
but not used [-Wunused-const-variable]
static const char device_decode[][30] = {
^~~~~~~~~~~~~
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
drivers/acpi/acpi_video.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c
index a76f8be..4361bc9 100644
--- a/drivers/acpi/acpi_video.c
+++ b/drivers/acpi/acpi_video.c
@@ -218,13 +218,6 @@ struct acpi_video_device {
struct thermal_cooling_device *cooling_dev;
};
-static const char device_decode[][30] = {
- "motherboard VGA device",
- "PCI VGA device",
- "AGP VGA device",
- "UNKNOWN",
-};
-
static void acpi_video_device_notify(acpi_handle handle, u32 event, void *data);
static void acpi_video_device_rebind(struct acpi_video_bus *video);
static void acpi_video_device_bind(struct acpi_video_bus *video,
--
2.7.0
Powered by blists - more mailing lists