]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: arm_sdei: Remove while loop in sdei_event_unregister()
authorGavin Shan <gshan@redhat.com>
Tue, 22 Sep 2020 13:04:19 +0000 (23:04 +1000)
committerWill Deacon <will@kernel.org>
Mon, 28 Sep 2020 20:52:22 +0000 (21:52 +0100)
commitcb36a97ff6c7c7549122e2b83a234def50ec0ae5
tree93a734914736baba1cf2d5982482117a98a3e4ec
parent5479c454a6d5a5fbca30a0f48baa97f9019c8c17
firmware: arm_sdei: Remove while loop in sdei_event_unregister()

This removes the unnecessary while loop in sdei_event_unregister()
because of the following two reasons. This shouldn't cause any
functional changes.

   * The while loop is executed for once, meaning it's not needed
     in theory.
   * With the while loop removed, the nested statements can be
     avoid to make the code a bit cleaner.

Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20200922130423.10173-10-gshan@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/firmware/arm_sdei.c