powerpc/eeh: Drop redundant spinlock initialization
[ Upstream commit3def164a5c] slot_errbuf_lock has declared and initialized by DEFINE_SPINLOCK, so we don't need to spin_lock_init again, drop it. Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/1652232476-9696-1-git-send-email-baihaowen@meizu.com Stable-dep-of:9aafbfa5f5("powerpc/pseries/eeh: use correct API for error log size") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
12654b7d8d
commit
9dc96fee26
@@ -846,8 +846,7 @@ static int __init eeh_pseries_init(void)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize error log lock and size */
|
/* Initialize error log size */
|
||||||
spin_lock_init(&slot_errbuf_lock);
|
|
||||||
eeh_error_buf_size = rtas_token("rtas-error-log-max");
|
eeh_error_buf_size = rtas_token("rtas-error-log-max");
|
||||||
if (eeh_error_buf_size == RTAS_UNKNOWN_SERVICE) {
|
if (eeh_error_buf_size == RTAS_UNKNOWN_SERVICE) {
|
||||||
pr_info("%s: unknown EEH error log size\n",
|
pr_info("%s: unknown EEH error log size\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user