Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Ilpo Järvinen and committed by
Kalle Valo
ac586b84 18814f72

+1 -1
+1 -1
drivers/bcma/driver_pci_host.c
··· 280 280 /* check for Header type 0 */ 281 281 bcma_extpci_read_config(pc, dev, func, PCI_HEADER_TYPE, &byte_val, 282 282 sizeof(u8)); 283 - if ((byte_val & 0x7F) != PCI_HEADER_TYPE_NORMAL) 283 + if ((byte_val & PCI_HEADER_TYPE_MASK) != PCI_HEADER_TYPE_NORMAL) 284 284 return cap_ptr; 285 285 286 286 /* check if the capability pointer field exists */