[v2,03/17] drivers/firmware/sdei: Retrieve event number from event instance
diff mbox series

Message ID 20200722095740.28560-4-gshan@redhat.com
State New
Headers show
  • Refactor SDEI client driver
Related show

Commit Message

Gavin Shan July 22, 2020, 9:57 a.m. UTC
In sdei_event_create(), the event number is retrieved from the
variable @event_num for the shared event. The event number was
stored in the event instance. So we can fetch it from the event
instance, similar to what we're doing for the private event.

Signed-off-by: Gavin Shan <gshan@redhat.com>
v2: Improved commit log
    Dropped changes to remove @regs
    Dropped changes to reorder variables
 drivers/firmware/arm_sdei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c
index 67da02b3a06e..86ab878d1198 100644
--- a/drivers/firmware/arm_sdei.c
+++ b/drivers/firmware/arm_sdei.c
@@ -217,7 +217,7 @@  static struct sdei_event *sdei_event_create(u32 event_num,
 			goto fail;
-		reg->event_num = event_num;
+		reg->event_num = event->event_num;
 		reg->priority = event->priority;
 		reg->callback = cb;