Skip to contentSkip to conversation

staging:rtl8188eu:hal Fix wrong comparison to False

PATCH In review Janani Sankara Babu 2 participants 2 messages Sep 21, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging:rtl8188eu:hal Fix wrong comparison to False

This patch solves the warning "Using comparison to false is error prone"

---
 drivers/staging/rtl8188eu/hal/odm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8188eu/hal/odm.c +1 -1
index ec8aae7..001d626 100644
@@ -382,7 +382,7 @@ void odm_DIG(struct odm_dm_struct *pDM_Odm)
 	}
 
 	/* add by Neil Chen to avoid PSD is processing */
-	if (pDM_Odm->bDMInitialGainEnable == false) {
+	if (!pDM_Odm->bDMInitialGainEnable) {
 		ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: PSD is Processing\n"));
 		return;
 	}
Signature · 1 line
1.9.1
#1 lore raw
Quoted 1 line · Janani Sankara Babu

This patch solves the warning "Using comparison to false is error prone"

Out of curiosity, which tool complains about that?

regards,
dan carpenter