OSDN Git Service

mt76: fix boolreturn.cocci warnings
authorjing yangyang <cgel.zte@gmail.com>
Fri, 20 Aug 2021 02:41:17 +0000 (19:41 -0700)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:39 +0000 (10:36 +0200)
commit4fb0a7d26ab0516cacdb2cc1784c9694680d24ec
tree40e9809504ba5ddad4f8105b835007d2e297ec53
parentcf592be1d734ea139c815e78751c5dbcdaa2aed9
mt76: fix boolreturn.cocci warnings

./drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c:172:8-9:WARNING:
return of 0/1 in function 'mt7663_usb_sdio_tx_status_data' with return
type bool

Return statements in functions returning bool should use true/false
instead of 1/0.

Generated by: scripts/coccinelle/misc/boolreturn.cocci

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: jing yangyang <jing.yangyang@zte.com.cn>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c