summaryrefslogtreecommitdiffstats
path: root/drivers/ssb
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-05 02:04:53 +0200
committerKalle Valo <kvalo@codeaurora.org>2018-08-09 17:15:46 +0200
commitc7743c428111912fffceb38b860024f7e33b3e3c (patch)
tree2776cc5b72fdb40b2ba11be1ac8d09047ddda635 /drivers/ssb
parentrtlwifi: btcoex: Fix if == else warnings in halbtc8723b2ant.c (diff)
downloadlinux-c7743c428111912fffceb38b860024f7e33b3e3c.tar.xz
linux-c7743c428111912fffceb38b860024f7e33b3e3c.zip
ssb: driver_gige: use true and false for boolean values
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>
Diffstat (limited to 'drivers/ssb')
-rw-r--r--drivers/ssb/driver_gige.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ssb/driver_gige.c b/drivers/ssb/driver_gige.c
index e9734051e3c4..ebee6b0e3c34 100644
--- a/drivers/ssb/driver_gige.c
+++ b/drivers/ssb/driver_gige.c
@@ -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);