diff mbox

ACPI / video: remove unused device_decode

Message ID 1455576004-11839-1-git-send-email-colin.king@canonical.com (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Colin King Feb. 15, 2016, 10:40 p.m. UTC
From: Colin Ian King <colin.king@canonical.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@canonical.com>
---
 drivers/acpi/acpi_video.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Rafael J. Wysocki March 10, 2016, 11:34 p.m. UTC | #1
On Monday, February 15, 2016 10:40:04 PM Colin King wrote:
> From: Colin Ian King <colin.king@canonical.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@canonical.com>

Applied, thanks!

Rafael

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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,