From ea1f6e11f60db76a1196360dcaced417a1e217c4 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 8 Jul 2010 13:55:30 -0500 Subject: stk: Get rid of gratuitous goto abuse --- src/stk.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/stk.c b/src/stk.c index 98cf8108..9222800a 100644 --- a/src/stk.c +++ b/src/stk.c @@ -362,12 +362,9 @@ static gboolean handle_command_set_idle_text(const struct stk_command *cmd, stk->idle_mode_text = NULL; } - if (!cmd->setup_idle_mode_text.text) - goto out; - - stk->idle_mode_text = g_strdup(cmd->setup_idle_mode_text.text); + if (cmd->setup_idle_mode_text.text) + stk->idle_mode_text = g_strdup(cmd->setup_idle_mode_text.text); -out: idle_mode_text = stk->idle_mode_text ?: ""; ofono_dbus_signal_property_changed(conn, path, OFONO_STK_INTERFACE, "IdleModeText", -- cgit v1.2.3