Skip to content

Commit eb33da0

Browse files
henryZegregkh
authored andcommitted
goldfish: Fix unused const variable 'goldfish_pipe_acpi_match'
Fix the following compilation warning: drivers/platform/goldfish/goldfish_pipe.c:925:36: warning: ‘goldfish_pipe_acpi_match’ defined but not used [-Wunused-const-variable=] 925 | static const struct acpi_device_id goldfish_pipe_acpi_match[] = { The complexity of config guards needed for ACPI_PTR() is not worthwhile for the small amount of saved data. So remove the use of ACPI_PTR instead and drop now unneeded linux/acpi.h include. Fixes: d62f324 ("goldfish: Enable ACPI-based enumeration for android pipe") Signed-off-by: Zeng Heng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f248ff1 commit eb33da0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/platform/goldfish/goldfish_pipe.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
#include <linux/io.h>
6262
#include <linux/dma-mapping.h>
6363
#include <linux/mm.h>
64-
#include <linux/acpi.h>
6564
#include <linux/bug.h>
6665
#include "goldfish_pipe_qemu.h"
6766

@@ -940,7 +939,7 @@ static struct platform_driver goldfish_pipe_driver = {
940939
.driver = {
941940
.name = "goldfish_pipe",
942941
.of_match_table = goldfish_pipe_of_match,
943-
.acpi_match_table = ACPI_PTR(goldfish_pipe_acpi_match),
942+
.acpi_match_table = goldfish_pipe_acpi_match,
944943
}
945944
};
946945

0 commit comments

Comments
 (0)