mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
[SPARC]: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove a duplicate of ARRAY_SIZE which is never used anyways. Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a5ee363463
commit
940fdc6e12
3 changed files with 3 additions and 5 deletions
|
@ -75,7 +75,7 @@ struct cpu_fp_info linux_sparc_fpu[] = {
|
|||
{ 9, 3, "Fujitsu or Weitek on-chip FPU"},
|
||||
};
|
||||
|
||||
#define NSPARCFPU (sizeof(linux_sparc_fpu)/sizeof(struct cpu_fp_info))
|
||||
#define NSPARCFPU ARRAY_SIZE(linux_sparc_fpu)
|
||||
|
||||
struct cpu_iu_info linux_sparc_chips[] = {
|
||||
/* Sun4/100, 4/200, SLC */
|
||||
|
@ -120,7 +120,7 @@ struct cpu_iu_info linux_sparc_chips[] = {
|
|||
{ 0xf, 0, "UNKNOWN CPU-VENDOR/TYPE"},
|
||||
};
|
||||
|
||||
#define NSPARCCHIPS (sizeof(linux_sparc_chips)/sizeof(struct cpu_iu_info))
|
||||
#define NSPARCCHIPS ARRAY_SIZE(linux_sparc_chips)
|
||||
|
||||
char *sparc_cpu_type;
|
||||
char *sparc_fpu_type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue