mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
[SPARC64]: ARRAY_SIZE() cleanup
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1d3e07f7d0
commit
29f139ce27
@ -207,8 +207,7 @@ static struct {
|
||||
{ "SUNW,sun4v-pci", sun4v_pci_init },
|
||||
{ "pciex108e,80f0", fire_pci_init },
|
||||
};
|
||||
#define PCI_NUM_CONTROLLER_TYPES (sizeof(pci_controller_table) / \
|
||||
sizeof(pci_controller_table[0]))
|
||||
#define PCI_NUM_CONTROLLER_TYPES ARRAY_SIZE(pci_controller_table)
|
||||
|
||||
static int __init pci_controller_init(const char *model_name, int namelen, struct device_node *dp)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user