device: Combine two if statements with identical outcome
[framework/connectivity/connman.git] / gdbus / polkit.c
index ed876ca..9e95fa3 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  D-Bus helper library
  *
- *  Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>
+ *  Copyright (C) 2004-2011  Marcel Holtmann <marcel@holtmann.org>
  *
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -163,7 +163,7 @@ int polkit_check_authorization(DBusConnection *conn,
 
        msg = dbus_message_new_method_call(AUTHORITY_DBUS, AUTHORITY_PATH,
                                AUTHORITY_INTF, "CheckAuthorization");
-       if (!msg) {
+       if (msg == NULL) {
                dbus_free(data);
                return -ENOMEM;
        }