diff options
author | Mathieu OTHACEHE <m.othacehe@gmail.com> | 2016-02-04 19:01:29 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2016-02-28 14:36:53 +0100 |
commit | ce9d8562536f1289f7cb7afb1d4b2e0d27d2eb2c (patch) | |
tree | b581d4b2b446f51489fdf0bd2275e0fc51a1eda9 /drivers/usb/serial/quatech2.c | |
parent | 0f3083af5fde121abefddf70c84ba51455ae310f (diff) | |
download | linux-stable-ce9d8562536f1289f7cb7afb1d4b2e0d27d2eb2c.tar.gz linux-stable-ce9d8562536f1289f7cb7afb1d4b2e0d27d2eb2c.tar.bz2 linux-stable-ce9d8562536f1289f7cb7afb1d4b2e0d27d2eb2c.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c index 504f5bff79c0..2df8ad5ede89 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; } |