[PATCH 0/2] PCI: Convert MSI and AER state tracking variables to bool type
Hans Zhang
18255117159 at 163.com
Sat May 17 02:52:21 AEST 2025
This patch series converts MSI/AER state tracking variables from int to
bool type to improve code clarity and align with kernel coding standards.
These variables inherently represent boolean states (enabled/disabled).
Existing code already treats them as truth values in condition checks.
Explicit bool type eliminates ambiguity between integer 1/0 and
true/false. Follows modern kernel practices for state tracking with proper
type semantics.
No functional changes - pure code cleanup to enhance readability and
maintainability.
Hans Zhang (2):
PCI/MSI: Use bool for MSI enable state tracking
PCI/AER: Use bool for AER disable state tracking
drivers/pci/msi/api.c | 2 +-
drivers/pci/msi/msi.c | 4 ++--
drivers/pci/msi/msi.h | 2 +-
drivers/pci/pcie/aer.c | 4 ++--
include/linux/pci.h | 4 ++--
5 files changed, 8 insertions(+), 8 deletions(-)
base-commit: fee3e843b309444f48157e2188efa6818bae85cf
--
2.25.1
More information about the Linuxppc-dev
mailing list