]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ssb: driver_gige: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sun, 5 Aug 2018 00:04:53 +0000 (19:04 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 9 Aug 2018 15:15:46 +0000 (18:15 +0300)
Return statements in functions returning bool should use true or false
instead of an integer value.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Michael Buesch <m@bues.ch>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/ssb/driver_gige.c

index e9734051e3c4adaedaa4131948355d5dd6fd1e00..ebee6b0e3c346c9dc29add734fa2df4118614939 100644 (file)
@@ -242,7 +242,7 @@ static int ssb_gige_probe(struct ssb_device *sdev,
 bool pdev_is_ssb_gige_core(struct pci_dev *pdev)
 {
        if (!pdev->resource[0].name)
-               return 0;
+               return false;
        return (strcmp(pdev->resource[0].name, SSB_GIGE_MEM_RES_NAME) == 0);
 }
 EXPORT_SYMBOL(pdev_is_ssb_gige_core);