diff mbox series

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

Message ID 20240305132807.85724-2-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/5] cert: remove usused elem_data variable | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success

Commit Message

James Prestwood March 5, 2024, 1:28 p.m. UTC
This was being set in the if block but never used afterwards.
---
 ell/dbus.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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