[PATCH 2/5] dbus: remove unused 'type' variable

James Prestwood <[email protected]> Tue, 5 Mar 2024 05:28:04 -0800
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
This was being set in the if block but never used afterwards.
---
 ell/dbus.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ell/dbus.c b/ell/dbus.c
index 532e07b..d610532 100644
--- a/ell/dbus.c
+++ b/ell/dbus.c
@@ -1689,8 +1689,7 @@ LIB_EXPORT unsigned int l_dbus_add_signal_watch(struct l_dbus *dbus,
 	va_start(args, member);
 
 	rule_len = 0;
-	while ((type = va_arg(args, enum l_dbus_match_type)) !=
-			L_DBUS_MATCH_NONE)
+	while (va_arg(args, enum l_dbus_match_type) != L_DBUS_MATCH_NONE)
 		rule_len++;
 
 	va_end(args);
-- 
2.34.1