Return-Path: MIME-Version: 1.0 In-Reply-To: <1350486869-5020-2-git-send-email-lucas.demarchi@profusion.mobi> References: <1350486869-5020-1-git-send-email-lucas.demarchi@profusion.mobi> <1350486869-5020-2-git-send-email-lucas.demarchi@profusion.mobi> Date: Wed, 17 Oct 2012 13:20:29 -0300 Message-ID: Subject: Re: [PATCH BlueZ 2/2] core: Update gdbus function calls From: Anderson Lizardo To: Lucas De Marchi Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Lucas, On Wed, Oct 17, 2012 at 12:14 PM, Lucas De Marchi wrote: > @@ -827,24 +824,21 @@ static void set_name(struct btd_adapter *adapter, const char *name, > int ret; > > if (adapter->allow_name_changes == FALSE) > - return g_dbus_pending_property_error(btd_get_dbus_connection(), > - id, ERROR_INTERFACE ".Failed", > + return g_dbus_pending_property_error(id, > + ERROR_INTERFACE ".Failed", > strerror(EPERM)); > > ret = adapter_set_name(adapter, name); > - if (ret >= 0) { > - g_dbus_pending_property_success(btd_get_dbus_connection(), id); > - return; > - } > + if (ret >= 0) > + return g_dbus_pending_property_success(id); Out of curiosity, is this style of returning "void" (instead of just "return;") common in gdbus? Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil