aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-05-06 08:26:46 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-12 03:15:35 +0200
commit4b1dc7d31af2ae191a7daa0804d226a404458d2a (patch)
tree57ec27ac95fd4742b24a57e1b9c825f2b53cd260 /package
parent5913ea1ba2fa7f5fc055c8ade361e06ddb666120 (diff)
downloadupstream-4b1dc7d31af2ae191a7daa0804d226a404458d2a.tar.gz
upstream-4b1dc7d31af2ae191a7daa0804d226a404458d2a.tar.bz2
upstream-4b1dc7d31af2ae191a7daa0804d226a404458d2a.zip
kernel: gpio-nct5104d: drop unused variables in nct5104d_gpio_init
Drop unused variables in nct5104d_gpio_init. These variables should have been dropped in d3b8e6b2a77d ("kernel: gpio-nct5104d remove boardname check"). Thix fix compilation warning: /__w/openwrt/openwrt/openwrt/build_dir/target-x86_64-openwrt-linux-musl_musl/linux-x86_64/gpio-nct5104d/gpio-nct5104d.c: In function 'nct5104d_gpio_init': /__w/openwrt/openwrt/openwrt/build_dir/target-x86_64-openwrt-linux-musl_musl/linux-x86_64/gpio-nct5104d/gpio-nct5104d.c:413:21: error: unused variable 'board_name' [-Werror=unused-variable] 413 | const char *board_name = dmi_get_system_info(DMI_BOARD_NAME); | ^~~~~~~~~~ /__w/openwrt/openwrt/openwrt/build_dir/target-x86_64-openwrt-linux-musl_musl/linux-x86_64/gpio-nct5104d/gpio-nct5104d.c:412:21: error: unused variable 'board_vendor' [-Werror=unused-variable] 412 | const char *board_vendor = dmi_get_system_info(DMI_BOARD_VENDOR); | ^~~~~~~~~~~~ cc1: all warnings being treated as errors Fixes: d3b8e6b2a77d ("kernel: gpio-nct5104d remove boardname check") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/gpio-nct5104d/src/gpio-nct5104d.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c b/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
index 8f180edd33..5343d6e3a8 100644
--- a/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
+++ b/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
@@ -409,8 +409,6 @@ static int __init nct5104d_gpio_init(void)
{
int err;
struct nct5104d_sio sio;
- const char *board_vendor = dmi_get_system_info(DMI_BOARD_VENDOR);
- const char *board_name = dmi_get_system_info(DMI_BOARD_NAME);
if (nct5104d_find(0x2e, &sio) &&
nct5104d_find(0x4e, &sio))