a2dp: Fix useless statement
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 May 2019 11:49:22 +0000 (14:49 +0300)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:47 +0000 (14:27 +0530)
Checking for NULL path doesn't really matter since NULL is returned
anyway.

Change-Id: Iba01088d9b95cb4541f4aa37f44ef8d7b6518f81
Signed-off-by: himanshu <h.himanshu@samsung.com>
profiles/audio/a2dp.c

index 2b3eea3..56f0886 100644 (file)
@@ -3167,8 +3167,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;