diff options
author | Szymon Janc <szymon.janc@codecoup.pl> | 2015-10-16 12:24:09 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@codecoup.pl> | 2015-10-30 11:44:19 +0100 |
commit | 97075679fe12d96fb433a1cac860e5dd90538e72 (patch) | |
tree | ce21f4b709249050f4153b7acf057bdb66c2ca52 /android/avdtp.c | |
parent | 962285c7cf3719e59db1a351ae615e87d3f242ad (diff) | |
download | bluez-97075679fe12d96fb433a1cac860e5dd90538e72.tar.gz |
android: Remove dead code
This removes dead code due to memory allocation with new0 not being
able to fail.
Diffstat (limited to 'android/avdtp.c')
-rw-r--r-- | android/avdtp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/android/avdtp.c b/android/avdtp.c index 908c0cac6..bab305bed 100644 --- a/android/avdtp.c +++ b/android/avdtp.c @@ -3398,10 +3398,7 @@ struct avdtp_local_sep *avdtp_register_sep(struct queue *lseps, uint8_t type, DBG("SEP %p registered: type:%d codec:%d seid:%d", sep, sep->info.type, sep->codec, sep->info.seid); - if (!queue_push_tail(lseps, sep)) { - g_free(sep); - return NULL; - } + queue_push_tail(lseps, sep); return sep; } |