Skip to content

Commit

Permalink
ssb: driver_gige: use true and false for boolean values
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo A. R. Silva authored and Kalle Valo committed Aug 9, 2018
1 parent ad2e6d2 commit c7743c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ssb/driver_gige.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c7743c4

Please sign in to comment.