Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp65152pxk; Tue, 15 Sep 2020 20:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8kNyfjUiTUxOaMPdlsMK5nSHrpxKHVnsqEcOfxSoMgxLTJZluQomMIdZiExlNBnD1j9mm X-Received: by 2002:a17:907:2456:: with SMTP id yw22mr22708283ejb.337.1600227909349; Tue, 15 Sep 2020 20:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600227909; cv=none; d=google.com; s=arc-20160816; b=xQ0FGclxeJa6gz26AFmt3j7/bDsUGPnk8ahgrp19Rs7gdcw3wExMvQ/EZCc7PRh95s 7bYbfI1cZtEnV59aMJi0OAKw87z19wzEtylu0HJKbycHmXRbrpyFBbhhUmIcTvuHzccf XwqlthqSPfYqEpDeLmG1t3WvvaKBcHaG2VvFGVO/Y2Mrtsiu5CrowJpG09+SiiMJ07li zhqyNOwdqvEZY2PXS5Pdbns2Zq667695pehdgD9GJ16cdTNGeCasEwPNOTeuRA4gLJ4F mjY+FORHgzoqZ7RpsvTaIen9D0d1SJwyaqvKXH7dC3iUsV1zjDiOwtadh4OPkQdA+rK6 IPSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature; bh=Sa18Wy+AFGfNEzK/QEu3XYN/v5F2MKLXPBV9X785ZOo=; b=E2MGoEWmD6WA8q9GX3kBx5FzXXyXLkNM85eAKI9LM9ihZ0JJYinuzlJ9Fzb5EbfASn vwo2+1ZKYzVfUVOGcOVoJHBL1kLbv0rHIvx/dIbBt5uMQZ6Zv73fGEtkFqFe9/6H0woH yQdF7vdPlL/HFxnvUXQuTpbxxDJG0EejREVyr/tuU4M9Al4j2LplmvQYByAqPCXGwY4g ARSSyPmfzMRwT6LzJWXSuj4XAVeApHH0Ag1PcyPrY3nth33x5X0UeitmK6wyUKFWaHh9 5TFrBoqXgug5iSX/UZeHAQ6kGE+pgfHq/bP8SDr3dIOdB2S54xhi1NT/zUvwt8w11YmX TI6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R5Qd5YkV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kq26si3328571ejb.252.2020.09.15.20.44.47; Tue, 15 Sep 2020 20:45:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R5Qd5YkV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726333AbgIPDkk (ORCPT + 99 others); Tue, 15 Sep 2020 23:40:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:48944 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbgIPDk0 (ORCPT ); Tue, 15 Sep 2020 23:40:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600227622; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Sa18Wy+AFGfNEzK/QEu3XYN/v5F2MKLXPBV9X785ZOo=; b=R5Qd5YkVWsz4nEF6pq2WaTLDtqC+R8w6c5qWCYgk0fO8ANgk+pIWQBJeLr27+mbxbpwgS/ aYFf+NhHvGPTEMM5O0sV1kTir7ZLhO68oYcYL8+SiH2liBjI8U+prqMz4qaHgBxDkwVx8x pRfGqXVkYyH3ymnrBtLKelTC3GeW+bg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-18-xHzbVAyzPC693VGLrZM1aA-1; Tue, 15 Sep 2020 23:40:21 -0400 X-MC-Unique: xHzbVAyzPC693VGLrZM1aA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9DCD61800D4A; Wed, 16 Sep 2020 03:40:19 +0000 (UTC) Received: from [10.64.54.108] (vpn2-54-108.bne.redhat.com [10.64.54.108]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 930AC702E7; Wed, 16 Sep 2020 03:40:18 +0000 (UTC) Reply-To: Gavin Shan Subject: Re: [PATCH -next] firmware: arm_sdei: simplify the return expression of sdei_device_freeze() To: Liu Shixin , James Morse Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20200915032625.1772413-1-liushixin2@huawei.com> From: Gavin Shan Message-ID: <9fdd9c4d-d957-e7d5-818d-cc9247be9dfd@redhat.com> Date: Wed, 16 Sep 2020 13:40:16 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: <20200915032625.1772413-1-liushixin2@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/15/20 1:26 PM, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin > --- Reviewed-by: Gavin Shan > 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) >