diff options
author | Steve Grubb <sgrubb@redhat.com> | 2009-09-28 10:08:24 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-10-02 11:18:40 +0200 |
commit | 30bc602db09d3adf65b924cc17f2b2b3d9059fd6 (patch) | |
tree | e8b7dae777264969eac0efa576d89f9d0abda09d | |
parent | 2e926fb0168ba0249dfbbcca71ff685e4235e1c7 (diff) | |
download | bluez-30bc602db09d3adf65b924cc17f2b2b3d9059fd6.tar.gz |
Fix unnecessary error checks
-rw-r--r-- | cups/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cups/main.c b/cups/main.c index 0308f4d4f..900657edf 100644 --- a/cups/main.c +++ b/cups/main.c @@ -426,7 +426,7 @@ static gboolean list_known_printers(const char *adapter) dbus_message_unref(message); - if (&error != NULL && dbus_error_is_set(&error)) + if (dbus_error_is_set(&error)) return FALSE; dbus_message_iter_init(reply, &reply_iter); @@ -527,7 +527,7 @@ static gboolean list_printers(void) dbus_error_init(&error); hcid_exists = dbus_bus_name_has_owner(conn, "org.bluez", &error); - if (&error != NULL && dbus_error_is_set(&error)) + if (dbus_error_is_set(&error)) return TRUE; if (!hcid_exists) @@ -547,7 +547,7 @@ static gboolean list_printers(void) dbus_message_unref(message); - if (&error != NULL && dbus_error_is_set(&error)) { + if (dbus_error_is_set(&error)) { dbus_connection_unref(conn); /* No adapter */ return TRUE; |