bluetooth: Remove minor unnecessary check

The return value of dbus_message_iter_next() doesn't need to be checked
since the while condition will be false anyway (arg type will be
DBUS_TYPE_INVALID).
This commit is contained in:
Mikel Astiz 2012-07-26 12:36:33 +02:00 committed by Tanu Kaskinen
parent ffe723d506
commit 57469ce734

View file

@ -396,8 +396,7 @@ static int parse_device_property(pa_bluetooth_discovery *y, pa_bluetooth_device
has_audio = TRUE; has_audio = TRUE;
} }
if (!dbus_message_iter_next(&ai)) dbus_message_iter_next(&ai);
break;
} }
/* this might eventually be racy if .Audio is not there yet, but the State change will come anyway later, so this call is for cold-detection mostly */ /* this might eventually be racy if .Audio is not there yet, but the State change will come anyway later, so this call is for cold-detection mostly */
@ -589,8 +588,7 @@ static void get_properties_reply(DBusPendingCall *pending, void *userdata) {
} }
} }
if (!dbus_message_iter_next(&element_i)) dbus_message_iter_next(&element_i);
break;
} }
finish: finish: