Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 767f0d68 authored by Alejandro Martinez Ruiz's avatar Alejandro Martinez Ruiz Committed by Paul Mundt
Browse files

sh: ARRAY_SIZE() cleanup



I'm converting most array size calculations under arch/ to use the
ARRAY_SIZE() macro. This is the (tiny) patch for sh.

Signed-off-by: default avatarAlejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent afca0357
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ static struct pci_err int_error[]={
  { INT_MWPDI,  "MWPDI: PERR from target at data write"},
  { INT_MRDPEI, "MRDPEI: Master read data parity error"}
};
#define NUM_PCI_INT_ERRS (sizeof(int_error)/sizeof(struct pci_err))
#define NUM_PCI_INT_ERRS ARRAY_SIZE(int_error)

static struct pci_err aint_error[]={
  { AINT_MBI,   "MBI: Master broken"},
@@ -126,7 +126,7 @@ static struct pci_err aint_error[]={
  { AINT_WDPE,  "WDPE: Write data parity"}
};

#define NUM_PCI_AINT_ERRS (sizeof(aint_error)/sizeof(struct pci_err))
#define NUM_PCI_AINT_ERRS ARRAY_SIZE(aint_error)

static void print_pci_errors(unsigned reg,struct pci_err *error,int num_errors)
{