From 16a05e52c635e192eb878ec5b3a87e3e00d91aed Mon Sep 17 00:00:00 2001 From: "Gustavo F. Padovan" Date: Mon, 14 Mar 2011 15:09:50 -0300 Subject: sbc: Fix redundant null check on calling free() Issues found by smatch static check: http://smatch.sourceforge.net/ --- src/modules/bluetooth/sbc/sbc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/bluetooth/sbc/sbc.c b/src/modules/bluetooth/sbc/sbc.c index 3af0a03c..5c5c1112 100644 --- a/src/modules/bluetooth/sbc/sbc.c +++ b/src/modules/bluetooth/sbc/sbc.c @@ -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)); } -- cgit