提交 c7743c42 编写于 作者: G Gustavo A. R. Silva 提交者: Kalle Valo

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: NGustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: NMichael Buesch <m@bues.ch>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 ad2e6d23
...@@ -242,7 +242,7 @@ static int ssb_gige_probe(struct ssb_device *sdev, ...@@ -242,7 +242,7 @@ static int ssb_gige_probe(struct ssb_device *sdev,
bool pdev_is_ssb_gige_core(struct pci_dev *pdev) bool pdev_is_ssb_gige_core(struct pci_dev *pdev)
{ {
if (!pdev->resource[0].name) if (!pdev->resource[0].name)
return 0; return false;
return (strcmp(pdev->resource[0].name, SSB_GIGE_MEM_RES_NAME) == 0); return (strcmp(pdev->resource[0].name, SSB_GIGE_MEM_RES_NAME) == 0);
} }
EXPORT_SYMBOL(pdev_is_ssb_gige_core); EXPORT_SYMBOL(pdev_is_ssb_gige_core);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册