Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723bs: fix issue "Using comparison to true is error prone"

this patch fixes below issue reported by checkpatch

CHECK: Using comparison to true is error prone
+ if (res == true)

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hariprasad Kelam and committed by
Greg Kroah-Hartman
045e1ee0 92546959

+1 -1
+1 -1
drivers/staging/rtl8723bs/os_dep/xmit_linux.c
··· 231 231 && padapter->registrypriv.wifi_spec == 0) { 232 232 if (pxmitpriv->free_xmitframe_cnt > (NR_XMITFRAME/4)) { 233 233 res = rtw_mlcst2unicst(padapter, pkt); 234 - if (res == true) 234 + if (res) 235 235 goto exit; 236 236 } else { 237 237 /* DBG_871X("Stop M2U(%d, %d)! ", pxmitpriv->free_xmitframe_cnt, pxmitpriv->free_xmitbuf_cnt); */