diff options
author | Yang Li <[email protected]> | 2021-03-15 15:40:00 +0800 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-05-27 18:51:17 -0500 |
commit | 0a470c843d233c2f6b68ae65357a246d9fb66178 (patch) | |
tree | 677c815fb2d9aa38a6f73051982606e2f3b3d12d /scripts/gdb/linux/proc.py | |
parent | 6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff) |
x86/pci: Return true/false (not 1/0) from bool functions
Return boolean values ("true" or "false") instead of 1 or 0 from bool
functions. This fixes the following warnings from coccicheck:
./arch/x86/pci/mmconfig-shared.c:464:9-10: WARNING: return of 0/1 in function 'is_mmconf_reserved' with return type bool
./arch/x86/pci/mmconfig-shared.c:493:5-6: WARNING: return of 0/1 in function 'is_mmconf_reserved' with return type bool
./arch/x86/pci/mmconfig-shared.c:501:9-10: WARNING: return of 0/1 in function 'is_mmconf_reserved' with return type bool
./arch/x86/pci/mmconfig-shared.c:522:5-6: WARNING: return of 0/1 in function 'is_mmconf_reserved' with return type bool
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Yang Li <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Krzysztof WilczyĆski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions