hal msm8974: fix logic in platform_check_backends_match().
Fix logic error in if() condition in commit 9af4b91
"hal: fix backend check routine for combo device"
BUG: 23916345
Change-Id: I587dd157ba34cad5f539d88e8161750f3e2b32c7
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 63b1a9b..45beae7 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -1211,7 +1211,7 @@
const char * be_itf2 = hw_interface_table[snd_device2];
if (NULL != be_itf1 && NULL != be_itf2) {
- if ((NULL == strstr(be_itf2, be_itf1)) || (NULL == strstr(be_itf1, be_itf2)))
+ if ((NULL == strstr(be_itf2, be_itf1)) && (NULL == strstr(be_itf1, be_itf2)))
result = false;
}