From d76a2fb6e2efd6914ff1967fc126d9d91fb4091d Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Fri, 11 Oct 2024 13:11:30 -0700 Subject: [PATCH] dp: swdp_bitbang: fix unused variable build error The variable config in sw_port_off() is not used, and it's causing CI build error about unused variable. So remove it. (cherry picked from commit 1ec5ce05f9f84b18cb8056d01917480a6ec39e52) Original-Signed-off-by: Daniel Leung GitOrigin-RevId: 1ec5ce05f9f84b18cb8056d01917480a6ec39e52 Cr-Build-Id: 8734199375406094193 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8734199375406094193 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: I1f055cb8d11f0a9d78fbe88f4cee88ccb1a86ca8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5927200 Reviewed-by: Jeremy Bettis Commit-Queue: Jeremy Bettis Tested-by: ChromeOS Prod (Robot) Tested-by: Jeremy Bettis --- drivers/dp/swdp_bitbang.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dp/swdp_bitbang.c b/drivers/dp/swdp_bitbang.c index a1d28386209..7822315ab8e 100644 --- a/drivers/dp/swdp_bitbang.c +++ b/drivers/dp/swdp_bitbang.c @@ -677,7 +677,6 @@ static int sw_port_off(const struct device *dev) static int sw_gpio_init(const struct device *dev) { - const struct sw_config *config = dev->config; struct sw_cfg_data *sw_data = dev->data; int ret;