mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
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>
This commit is contained in:
parent
ad2e6d23bd
commit
c7743c4281
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user