浏览代码

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 年之前
父节点
当前提交
1123940de7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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));