Skip to content

Commit

Permalink
mt76: mt7921: fix boolreturn.cocci warning
Browse files Browse the repository at this point in the history
./drivers/net/wireless/mediatek/mt76/mt7921/sdio_mac.c: 223: 8-9: WARNING:
return of 0/1 in function 'mt7921s_tx_status_data' with return type bool

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

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Changcheng Deng authored and Felix Fietkau committed Dec 19, 2021
1 parent 5b595b6 commit 9b5271f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mediatek/mt76/mt7921/sdio_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,5 @@ bool mt7921s_tx_status_data(struct mt76_dev *mdev, u8 *update)
mt7921_mac_sta_poll(dev);
mt7921_mutex_release(dev);

return 0;
return false;
}

0 comments on commit 9b5271f

Please sign in to comment.