stkutil: remove test for impossible condition

'string' is an array and therefore never NULL so this test always fails.
This commit is contained in:
Jonas Bonn 2018-10-26 12:13:16 +02:00 committed by Denis Kenzior
parent a1141ae393
commit ec3c6c67af
1 changed files with 0 additions and 3 deletions

View File

@ -4405,9 +4405,6 @@ static gboolean build_dataobj_ussd_string(struct stk_tlv_builder *tlv,
const struct stk_ussd_string *ussd = data;
unsigned char tag = STK_DATA_OBJECT_TYPE_USSD_STRING;
if (ussd->string == NULL)
return TRUE;
return stk_tlv_builder_open_container(tlv, cr, tag, FALSE) &&
stk_tlv_builder_append_byte(tlv, ussd->dcs) &&
stk_tlv_builder_append_bytes(tlv, ussd->string, ussd->len) &&