lkml.org 
[lkml]   [2020]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH -next] firmware: arm_sdei: simplify the return expression of sdei_device_freeze()
From
Date
On 9/15/20 1:26 PM, Liu Shixin wrote:
> Simplify the return expression.
>
> Signed-off-by: Liu Shixin <liushixin2@huawei.com>
> ---

Reviewed-by: Gavin Shan <gshan@redhat.com>

> drivers/firmware/arm_sdei.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c
> index b4b9ce97f415..5b4c8c51cb20 100644
> --- a/drivers/firmware/arm_sdei.c
> +++ b/drivers/firmware/arm_sdei.c
> @@ -798,16 +798,10 @@ static int sdei_device_resume(struct device *dev)
> */
> static int sdei_device_freeze(struct device *dev)
> {
> - int err;
> -
> /* unregister private events */
> cpuhp_remove_state(CPUHP_AP_ARM_SDEI_STARTING);
>
> - err = sdei_unregister_shared();
> - if (err)
> - return err;
> -
> - return 0;
> + return sdei_unregister_shared();
> }
>
> static int sdei_device_thaw(struct device *dev)
>

\
 
 \ /
  Last update: 2020-09-16 05:41    [W:0.029 / U:1.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site