emulator: Fix condition check in btdev_create()
authorInga Stotland <inga.stotland@intel.com>
Thu, 4 Jul 2019 07:01:10 +0000 (00:01 -0700)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:47 +0000 (14:27 +0530)
commit618e7b770f154b1b635e0f27e2d9db84640028a6
tree0a9fcbe5fe7be80389029c05a65886b74ddfc267
parent713302a69b63f0317a1a817ab3c0a78ab9007022
emulator: Fix condition check in btdev_create()

This fixes a case where logical '||' was used with constant operand
and the condition check always resulted in true.

Was: if (type == BTDEV_TYPE_BREDRLE || type == BTDEV_TYPE_LE
                                        || BTDEV_TYPE_BREDRLE50)
Fixed: if (type == BTDEV_TYPE_BREDRLE || type == BTDEV_TYPE_LE
                                        || type == BTDEV_TYPE_BREDRLE50)

Change-Id: If8730ed0e30a0b9508a7e9591e3f63cc3deecff9
Signed-off-by: himanshu <h.himanshu@samsung.com>
emulator/btdev.c