mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ACPI / video: remove unused device_decode
@ 2016-02-15 22:40 Colin King
  2016-03-10 23:34 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2016-02-15 22:40 UTC (permalink / raw)
  To: Zhang Rui, Rafael J . Wysocki, Len Brown, linux-acpi; +Cc: linux-kernel

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(-)

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI / video: remove unused device_decode
  2016-02-15 22:40 [PATCH] ACPI / video: remove unused device_decode Colin King
@ 2016-03-10 23:34 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2016-03-10 23:34 UTC (permalink / raw)
  To: Colin King
  Cc: Zhang Rui, Rafael J . Wysocki, Len Brown, linux-acpi, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-10 23:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-15 22:40 [PATCH] ACPI / video: remove unused device_decode Colin King
2016-03-10 23:34 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®