diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-11-24 11:09:18 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-11-30 21:21:28 +0200 |
commit | ac586b8401c911df24019532a28b69a4257e53d5 (patch) | |
tree | 25968c9d781e85c535d763d7cda82bdb701c9e01 | |
parent | 18814f723f92826d83fef40e19fc8cb130367868 (diff) | |
download | linux-ac586b8401c911df24019532a28b69a4257e53d5.tar.gz linux-ac586b8401c911df24019532a28b69a4257e53d5.tar.bz2 linux-ac586b8401c911df24019532a28b69a4257e53d5.zip |
bcma: Use PCI_HEADER_TYPE_MASK instead of literal
Replace literal 0x7f with PCI_HEADER_TYPE_MASK.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231124090919.23687-6-ilpo.jarvinen@linux.intel.com
-rw-r--r-- | drivers/bcma/driver_pci_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bcma/driver_pci_host.c b/drivers/bcma/driver_pci_host.c index aa0581cda718..ed3be52ab63d 100644 --- a/drivers/bcma/driver_pci_host.c +++ b/drivers/bcma/driver_pci_host.c @@ -280,7 +280,7 @@ static u8 bcma_find_pci_capability(struct bcma_drv_pci *pc, unsigned int dev, /* check for Header type 0 */ bcma_extpci_read_config(pc, dev, func, PCI_HEADER_TYPE, &byte_val, sizeof(u8)); - if ((byte_val & 0x7F) != PCI_HEADER_TYPE_NORMAL) + if ((byte_val & PCI_HEADER_TYPE_MASK) != PCI_HEADER_TYPE_NORMAL) return cap_ptr; /* check if the capability pointer field exists */ |