]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: vt6655: Remove boolean comparisons
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 15 Oct 2015 12:31:11 +0000 (13:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 06:05:17 +0000 (23:05 -0700)
Boolean tests do not need explicit comparison to true or false.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/card.c

index 4640b56ecd378a9928bbc93fcbeb5b78fc5af3ae..e0bf39e07c6d9fdba074a77bbd4a108e31d65db9 100644 (file)
@@ -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; }