Skip to content

Commit 9890dd3

Browse files
Hans Zhangbjorn-helgaas
authored andcommitted
PCI/AER: Use bool for AER disable state tracking
Change pcie_aer_disable variable to bool and update pci_no_aer() to set it to true. Improves code readability and aligns with modern kernel practices. Signed-off-by: Hans Zhang <hans.zhang@cixtech.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://patch.msgid.link/20250516165223.125083-3-18255117159@163.com
1 parent 19272b3 commit 9890dd3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pci/pcie/aer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ struct aer_info {
116116
PCI_ERR_ROOT_MULTI_COR_RCV | \
117117
PCI_ERR_ROOT_MULTI_UNCOR_RCV)
118118

119-
static int pcie_aer_disable;
119+
static bool pcie_aer_disable;
120120
static pci_ers_result_t aer_root_reset(struct pci_dev *dev);
121121

122122
void pci_no_aer(void)
123123
{
124-
pcie_aer_disable = 1;
124+
pcie_aer_disable = true;
125125
}
126126

127127
bool pci_aer_available(void)

0 commit comments

Comments
 (0)