[PATCH linux-next] net:wireless:mt76: fix boolreturn.cocci warnings

Kalle Valo kvalo at codeaurora.org
Sat Aug 21 03:10:20 PDT 2021


jing yangyang <cgel.zte at gmail.com> writes:

> ./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 at zte.com.cn>
> Signed-off-by: jing yangyang <jing.yangyang at zte.com.cn>
> ---
>  drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c | 2 +-

The subject should be:

mt76: mt7615: fix boolreturn.cocci warnings

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches



More information about the Linux-mediatek mailing list