mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
x86/cache_info: Use ARRAY_SIZE() in amd_l3_attrs()
Using ARRAY_SIZE() is more readable. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Srivatsa S. Bhat <[email protected]> Cc: Shai Fultheim <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Andreas Herrmann <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
fcd8af585f
commit
961c79761d
1 changed files with 1 additions and 1 deletions
|
|
@ -991,7 +991,7 @@ static struct attribute ** __cpuinit amd_l3_attrs(void)
|
|||
if (attrs)
|
||||
return attrs;
|
||||
|
||||
n = sizeof (default_attrs) / sizeof (struct attribute *);
|
||||
n = ARRAY_SIZE(default_attrs);
|
||||
|
||||
if (amd_nb_has_feature(AMD_NB_L3_INDEX_DISABLE))
|
||||
n += 2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue