summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/quatech2.c
diff options
context:
space:
mode:
authorMathieu OTHACEHE <m.othacehe@gmail.com>2016-02-04 19:01:29 +0100
committerJohan Hovold <johan@kernel.org>2016-02-28 14:36:53 +0100
commitce9d8562536f1289f7cb7afb1d4b2e0d27d2eb2c (patch)
treeb581d4b2b446f51489fdf0bd2275e0fc51a1eda9 /drivers/usb/serial/quatech2.c
parent0f3083af5fde121abefddf70c84ba51455ae310f (diff)
downloadop-kernel-dev-ce9d8562536f1289f7cb7afb1d4b2e0d27d2eb2c.zip
op-kernel-dev-ce9d8562536f1289f7cb7afb1d4b2e0d27d2eb2c.tar.gz
USB: serial: fix boolinit.cocci warnings
Bool initializations should use true and false. Bool tests don't need comparisons. Also, use IS_ENABLED instead of ifdef. Generated by: scripts/coccinelle/misc/boolinit.cocci Signed-off-by: Mathieu OTHACEHE <m.othacehe@gmail.com> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/quatech2.c')
-rw-r--r--drivers/usb/serial/quatech2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c
index 504f5bf..2df8ad5 100644
--- a/drivers/usb/serial/quatech2.c
+++ b/drivers/usb/serial/quatech2.c
@@ -973,7 +973,7 @@ static int qt2_write(struct tty_struct *tty,
data = write_urb->transfer_buffer;
spin_lock_irqsave(&port_priv->urb_lock, flags);
- if (port_priv->urb_in_use == true) {
+ if (port_priv->urb_in_use) {
dev_err(&port->dev, "qt2_write - urb is in use\n");
goto write_out;
}
OpenPOWER on IntegriCloud