Browse Source

qcacmn: Fix bitwise comparison issue

When the option -Werror=tautological-compare is enabled, the compiler
reports error because bitwise comparison always evaluates to false.

Change-Id: I7532dc9bccb69e02be5f04897a6ecaff44e84a0d
CRs-Fixed: 2734883
Paul Zhang 4 năm trước cách đây
mục cha
commit
1123940de7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      target_if/cfr/src/target_if_cfr_enh.c

+ 1 - 1
target_if/cfr/src/target_if_cfr_enh.c

@@ -1276,7 +1276,7 @@ target_if_peer_capture_event(ol_scn_t sc, uint8_t *data, uint32_t datalen)
 
 	target_type = target_if_cfr_get_target_type(psoc);
 
-	if ((tx_evt_param.status & PEER_CFR_CAPTURE_EVT_PS_STATUS_MASK) == 1) {
+	if (tx_evt_param.status & PEER_CFR_CAPTURE_EVT_PS_STATUS_MASK) {
 		cfr_err("CFR capture failed as peer is in powersave: "
 			QDF_MAC_ADDR_STR,
 			QDF_MAC_ADDR_ARRAY(tx_evt_param.peer_mac_addr.bytes));