EDAC/mc: Get rid of silly one-shot struct allocation in edac_mc_alloc()
authorBorislav Petkov <bp@suse.de>
Sun, 20 Feb 2022 21:34:54 +0000 (22:34 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 11 Apr 2022 09:25:39 +0000 (11:25 +0200)
commit0bbb265f7089584aaa6d440805ca75ea4f3930d4
tree1839665e04168dc5be80ef87cf499563de66963d
parent3123109284176b1532874591f7c81f3837bbdc17
EDAC/mc: Get rid of silly one-shot struct allocation in edac_mc_alloc()

This has probably meant something at some point but there's no need for
it anymore - the struct mem_ctl_info allocation can happen with normal,
boring k*alloc() calls like everyone else does it.

No functional changes.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220310095254.1510-2-bp@alien8.de
drivers/edac/edac_mc.c