Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: whci: fhci: remove comparison to bool

Get rid of bool explicit comparisons.

Caught by Coccinelle.

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Geyslan G. Bem and committed by
Greg Kroah-Hartman
2d80b52e 6b82b122

+2 -2
+1 -1
drivers/usb/host/fhci-tds.c
··· 85 85 86 86 void fhci_push_dummy_bd(struct endpoint *ep) 87 87 { 88 - if (ep->already_pushed_dummy_bd == false) { 88 + if (!ep->already_pushed_dummy_bd) { 89 89 u16 td_status = in_be16(&ep->empty_td->status); 90 90 91 91 out_be32(&ep->empty_td->buf_ptr, DUMMY_BD_BUFFER);
+1 -1
drivers/usb/host/whci/qset.c
··· 395 395 struct whc *whc = qset->whc; 396 396 unsigned long flags; 397 397 398 - if (wurb->is_async == true) 398 + if (wurb->is_async) 399 399 asl_update(whc, WUSBCMD_ASYNC_UPDATED 400 400 | WUSBCMD_ASYNC_SYNCED_DB 401 401 | WUSBCMD_ASYNC_QSET_RM);