]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: arm_sdei: clean up sdei_event_create()
authorLiguang Zhang <zhangliguang@linux.alibaba.com>
Fri, 21 Feb 2020 16:35:09 +0000 (16:35 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 27 Feb 2020 17:14:18 +0000 (17:14 +0000)
commit26e38f07fdf78ee400fead13ca6877221ba0a92f
tree2a433ccf1f30bba1514e36b7466b50cc90cb64cc
parent0237fcb34636d5a210392c068cd3033643742b61
firmware: arm_sdei: clean up sdei_event_create()

Function sdei_event_find() is always called in sdei_event_create(), but
it is already called in sdei_event_register(). This code is trying to
avoid a double-create of the same event, which can't happen as we still
hold the sdei_events_lock. We can remove this needless sdei_event_find()
call.

Signed-off-by: Liguang Zhang <zhangliguang@linux.alibaba.com>
[expanded commit message]
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/firmware/arm_sdei.c