summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ft1000
diff options
context:
space:
mode:
authorCristina Opriceana2015-03-04 11:37:28 +0100
committerGreg Kroah-Hartman2015-03-07 00:30:07 +0100
commit19cd22972fbe419235b380a94f31c826809cafec (patch)
tree9926bb81c9fc9b2a6e50c54251026e2eddcee27d /drivers/staging/ft1000
parentstaging: rtl8192e: Remove if conditions. (diff)
downloadkernel-qcow2-linux-19cd22972fbe419235b380a94f31c826809cafec.tar.gz
kernel-qcow2-linux-19cd22972fbe419235b380a94f31c826809cafec.tar.xz
kernel-qcow2-linux-19cd22972fbe419235b380a94f31c826809cafec.zip
Staging: drivers: Bool initializations should use true/false
This patch replaces bool initializations of 1/0 with true/false in order to increase readability and respect the standards. Warning found by coccinelle. Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r--drivers/staging/ft1000/ft1000-usb/ft1000_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
index da34257f0e2b..0f776d0bf0e4 100644
--- a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
+++ b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
@@ -544,7 +544,7 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
if (ft1000dev->fProvComplete == 0)
return -EACCES;
- ft1000dev->fAppMsgPend = 1;
+ ft1000dev->fAppMsgPend = true;
if (info->CardReady) {
@@ -719,7 +719,7 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
result = -ENOTTY;
break;
}
- ft1000dev->fAppMsgPend = 0;
+ ft1000dev->fAppMsgPend = false;
return result;
}