提交 17accc46 编写于 作者: L Luis de Bethencourt 提交者: Greg Kroah-Hartman

staging: vt6655: Remove boolean comparisons

Boolean tests do not need explicit comparison to true or false.
Signed-off-by: NLuis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4b1443a2
......@@ -472,14 +472,14 @@ bool CARDbRadioPowerOn(struct vnt_private *pDevice)
bool bResult = true;
pr_debug("chester power on\n");
if (pDevice->bRadioControlOff == true) {
if (pDevice->bHWRadioOff == true)
if (pDevice->bRadioControlOff) {
if (pDevice->bHWRadioOff)
pr_debug("chester bHWRadioOff\n");
if (pDevice->bRadioControlOff == true)
if (pDevice->bRadioControlOff)
pr_debug("chester bRadioControlOff\n");
return false; }
if (pDevice->bRadioOff == false) {
if (!pDevice->bRadioOff) {
pr_debug("chester pbRadioOff\n");
return true; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册