sbc: Fix redundant null check on calling free()
authorGustavo F. Padovan <gustavo@padovan.org>
Mon, 14 Mar 2011 18:09:50 +0000 (15:09 -0300)
committerLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Mon, 14 Mar 2011 18:09:50 +0000 (15:09 -0300)
Issues found by smatch static check: http://smatch.sourceforge.net/

src/modules/bluetooth/sbc/sbc.c

index 3af0a03..5c5c111 100644 (file)
@@ -1141,8 +1141,7 @@ void sbc_finish(sbc_t *sbc)
        if (!sbc)
                return;
 
-       if (sbc->priv_alloc_base)
-               free(sbc->priv_alloc_base);
+       free(sbc->priv_alloc_base);
 
        memset(sbc, 0, sizeof(sbc_t));
 }