sdm660-common: gps: Fix error: use of bitwise '|' with boolean operands

* fixes

device/asus/sdm660-common/gps/android/2.1/location_api/GnssAPIClient.cpp:651:35: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
    if (gnssCbIface != nullptr || gnssCbIface_2_0 != nullptr| gnssCbIface_2_1 != nullptr) {

Signed-off-by: karthik1896 <karthik1896@outlook.com>
Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
karthik1896 2022-08-17 00:25:55 +05:30 committed by pix106
parent 993729bb9b
commit b7e06b2a16

View file

@ -648,7 +648,7 @@ void GnssAPIClient::onGnssNmeaCb(GnssNmeaNotification gnssNmeaNotification)
auto gnssCbIface_2_1(mGnssCbIface_2_1);
mMutex.unlock();
if (gnssCbIface != nullptr || gnssCbIface_2_0 != nullptr| gnssCbIface_2_1 != nullptr) {
if (gnssCbIface != nullptr || gnssCbIface_2_0 != nullptr|| gnssCbIface_2_1 != nullptr) {
const std::string s(gnssNmeaNotification.nmea);
std::stringstream ss(s);
std::string each;