From: Uwe Hermann Date: Tue, 15 May 2018 22:28:56 +0000 (+0200) Subject: type_decoder.c: Drop unneeded g_free() NULL check. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8390f85af4a379f4e0a9305912d6d62ce09c6fc1;p=libsigrokdecode.git type_decoder.c: Drop unneeded g_free() NULL check. --- diff --git a/type_decoder.c b/type_decoder.c index 2bb3616..9e0a27c 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -125,8 +125,7 @@ static void release_binary(struct srd_proto_data_binary *pdb) { if (!pdb) return; - if (pdb->data) - g_free((void *)pdb->data); + g_free((void *)pdb->data); g_free(pdb); }