summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2019-05-03 14:49:22 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2019-05-03 14:49:22 +0300
commitf4a1e13ca1895c60c854fd1f378f75f73820b2ed (patch)
tree64476bef79da57318294ba9234d235b3e9eb6ed2 /profiles
parent626e923e36a6d063da72abe1912a520a4e858134 (diff)
downloadbluez-f4a1e13ca1895c60c854fd1f378f75f73820b2ed.tar.gz
a2dp: Fix useless statement
Checking for NULL path doesn't really matter since NULL is returned anyway.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/audio/a2dp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index f89105a8d..b54c50315 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -2998,8 +2998,7 @@ struct btd_device *a2dp_setup_get_device(struct a2dp_setup *setup)
const char *a2dp_setup_remote_path(struct a2dp_setup *setup)
{
if (setup->rsep) {
- if (setup->rsep->path)
- return setup->rsep->path;
+ return setup->rsep->path;
}
return NULL;