ssb: return boolean instead of integer in ssb_dma_translation_special_bit
PATCH 1/1 ssb: return boolean instead of integer in ssb_dma_translation_special_bit
Return statements in functions returning bool should use true/false instead of 1/0.
This issue was detected with the help of Coccinelle.
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/ssb/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ssb/main.c +1 -1
@@ -1116,7 +1116,7 @@ static bool ssb_dma_translation_special_bit(struct ssb_device *dev) chip_id == 43231 || chip_id == 43222); } -return 0 ; +return false; }u32 ssb_dma_translation (struct ssb_device *dev)
Signature · 1 line
2.7.4
Quoted 6 lines · Gustavo A. R. Silva
Return statements in functions returning bool should use true/false instead of 1/0.
This issue was detected with the help of Coccinelle.
Signed-off-by Gustavo A. R. Silva <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
bd42cd022e44 ssb: return boolean instead of integer in ssb_dma_translation_special_bit
Signature · 3 lines
https://patchwork.kernel.org/patch/10174387/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches