Skip to content

Commit

Permalink
EDAC, mce_amd_inj: Use MCE_INJECT_GET macro for bank node too
Browse files Browse the repository at this point in the history
inj_bank_get() is generic enough that we can use the MCE_INJECT_GET
macro instead.

No functionality change.

Signed-off-by: Aravind Gopalakrishnan <[email protected]>
Cc: linux-edac <[email protected]>
Cc: [email protected]
Cc: x86-ml <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Borislav Petkov <[email protected]>
  • Loading branch information
Aravind Gopalakrishnan authored and suryasaimadhu committed Jun 3, 2015
1 parent 451bb7f commit e7f2ea1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/edac/mce_amd_inj.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,7 @@ static int inj_bank_set(void *data, u64 val)
return 0;
}

static int inj_bank_get(void *data, u64 *val)
{
struct mce *m = (struct mce *)data;

*val = m->bank;
return 0;
}
MCE_INJECT_GET(bank);

DEFINE_SIMPLE_ATTRIBUTE(bank_fops, inj_bank_get, inj_bank_set, "%llu\n");

Expand Down

0 comments on commit e7f2ea1

Please sign in to comment.