From: Mikel Astiz Date: Thu, 26 Jul 2012 10:36:33 +0000 (+0200) Subject: bluetooth: Remove minor unnecessary check X-Git-Tag: accepted/2.0alpha/20121211.011210~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9a0e57114397d6d4e966b3d3714c934176bb28b;p=profile%2Fivi%2Fpulseaudio.git 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). --- diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index bb32ad2..bfe00dc 100644 --- a/src/modules/bluetooth/bluetooth-util.c +++ b/src/modules/bluetooth/bluetooth-util.c @@ -396,8 +396,7 @@ static int parse_device_property(pa_bluetooth_discovery *y, pa_bluetooth_device has_audio = TRUE; } - if (!dbus_message_iter_next(&ai)) - break; + dbus_message_iter_next(&ai); } /* 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)) - break; + dbus_message_iter_next(&element_i); } finish: