From 10b47fcce313a74e3025aa22b16d31f585df525f Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 2 Feb 2017 10:22:22 +0000 Subject: [PATCH] driver: Remove unnecessary NULL check context is definitely non-NULL at this point, and has been dereferenced already on all paths leading to it. Coverity ID: 141062 https://bugs.freedesktop.org/show_bug.cgi?id=99642 --- bus/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus/driver.c b/bus/driver.c index ae29df6..34b8686 100644 --- a/bus/driver.c +++ b/bus/driver.c @@ -1356,7 +1356,7 @@ bus_driver_handle_add_match (DBusConnection *connection, if (rule == NULL) goto failed; - bustype = context ? bus_context_get_type (context) : NULL; + bustype = bus_context_get_type (context); if (bus_match_rule_get_client_is_eavesdropping (rule) && !bus_apparmor_allows_eavesdropping (connection, bustype, error)) goto failed; -- 2.9.3