From: Jouni Malinen Date: Sun, 28 Dec 2014 11:03:28 +0000 (+0200) Subject: D-Bus(old): Remove duplicated blob->data check X-Git-Tag: hostap_2_4~634 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74df9c1c43e9173c636a6038d42aeacfe699d3bb;p=thirdparty%2Fhostap.git D-Bus(old): Remove duplicated blob->data check This was already verified to be non-NULL above and there is no point in having an extra check after the pointer has already been dereferenced. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/dbus/dbus_old_handlers.c b/wpa_supplicant/dbus/dbus_old_handlers.c index 588042b33..0f1f5cfc6 100644 --- a/wpa_supplicant/dbus/dbus_old_handlers.c +++ b/wpa_supplicant/dbus/dbus_old_handlers.c @@ -1379,7 +1379,7 @@ DBusMessage * wpas_dbus_iface_set_blobs(DBusMessage *message, blob->len = entry.array_len; os_memcpy(blob->data, (u8 *) entry.bytearray_value, entry.array_len); - if (blob->name == NULL || blob->data == NULL) { + if (blob->name == NULL) { wpa_config_free_blob(blob); reply = dbus_message_new_error( message, WPAS_ERROR_ADD_ERROR,