x86/RAS: Simplify SMCA bank descriptor struct
Call the struct simply smca_bank, it's instance ID can be simply ->id. Makes the code much more readable. Signed-off-by: Borislav Petkov <bp@suse.de> Tested-by: Yazen Ghannam <yazen.ghannam@amd.com> Link: http://lkml.kernel.org/r/20161103125556.15482-1-bp@alien8.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:

committed by
Thomas Gleixner

parent
cd9c57cad3
commit
79349f529a
@@ -371,12 +371,13 @@ struct smca_hwid_mcatype {
|
||||
u32 xec_bitmap; /* Bitmap of valid ExtErrorCodes; current max is 21. */
|
||||
};
|
||||
|
||||
struct smca_bank_info {
|
||||
struct smca_bank {
|
||||
struct smca_hwid_mcatype *type;
|
||||
u32 type_instance;
|
||||
/* Instance ID */
|
||||
u32 id;
|
||||
};
|
||||
|
||||
extern struct smca_bank_info smca_banks[MAX_NR_BANKS];
|
||||
extern struct smca_bank smca_banks[MAX_NR_BANKS];
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user