]> git.baikalelectronics.ru Git - kernel.git/commit
x86/pci: Return true/false (not 1/0) from bool functions
authorYang Li <yang.lee@linux.alibaba.com>
Mon, 15 Mar 2021 07:40:00 +0000 (15:40 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 27 May 2021 23:51:17 +0000 (18:51 -0500)
commit0f53b057c0f07620b2bf66666f7cb615ba551642
tree677c815fb2d9aa38a6f73051982606e2f3b3d12d
parent9fb51bb203ba1c67f480638e9d0605db59810687
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/1615794000-102771-1-git-send-email-yang.lee@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
arch/x86/pci/mmconfig-shared.c