]> sigrok.org Git - libsigrokdecode.git/commitdiff
type_decoder.c: Drop unneeded g_free() NULL check.
authorUwe Hermann <redacted>
Tue, 15 May 2018 22:28:56 +0000 (00:28 +0200)
committerUwe Hermann <redacted>
Wed, 16 May 2018 10:17:42 +0000 (12:17 +0200)
type_decoder.c

index 2bb361618f71e3d65ffa7c8c1b5605e3485be6a2..9e0a27cf7738622aada2813e5ddfaa1457870d3d 100644 (file)
@@ -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);
 }