gprs: Remove unneeded if conditions

ctx->message_center and ctx->message_proxy are arrays and thus
always evaluate as true
This commit is contained in:
Denis Kenzior 2019-04-29 19:28:59 -05:00
parent c56bd74cb1
commit ca9d5b73ab
1 changed files with 2 additions and 2 deletions

View File

@ -1133,7 +1133,7 @@ static DBusMessage *pri_set_message_proxy(struct pri_context *ctx,
if (strlen(proxy) > MAX_MESSAGE_PROXY_LENGTH)
return __ofono_error_invalid_format(msg);
if (ctx->message_proxy && g_str_equal(ctx->message_proxy, proxy))
if (g_str_equal(ctx->message_proxy, proxy))
return dbus_message_new_method_return(msg);
strcpy(ctx->message_proxy, proxy);
@ -1162,7 +1162,7 @@ static DBusMessage *pri_set_message_center(struct pri_context *ctx,
if (strlen(center) > MAX_MESSAGE_CENTER_LENGTH)
return __ofono_error_invalid_format(msg);
if (ctx->message_center && g_str_equal(ctx->message_center, center))
if (g_str_equal(ctx->message_center, center))
return dbus_message_new_method_return(msg);
strcpy(ctx->message_center, center);