Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2627197pxk; Mon, 14 Sep 2020 20:07:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtTKCXRHrPO4LgN+OzjjHyznNGGLa/o0mjN7n7Rn1EYtIRfgRySG0RbpKKw2GI3zqpIYKI X-Received: by 2002:a05:6402:45a:: with SMTP id p26mr21406358edw.8.1600139240821; Mon, 14 Sep 2020 20:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600139240; cv=none; d=google.com; s=arc-20160816; b=grEVj7kW4gs2eQO0qxVTB7uh3oDnsy0Dk6KaLJl/PG5fKNfNFZlJ1e9n1zRtEEHedm /kH1K6lpGAJwS8hOULooYSI+CS2HfZm2XW65XoflUgVKUHQEB8pMwg6IBEirYWEx6df0 ePTTUXxWmxWv3NBzGF9bLzmN/k4C7YDDerMDaS6v/95w904UAUNC4dfoI1gwYjG3c9ZH k+bSIV8pHLcUx5XZB7zxROPDvL0UCduZgtQSyQxy7e9ol/U6A4KtJDqc+JdGIIT7iT9T dCJtyEPuvCD/Io51c3ETNoPjcLdof061YZBYcYgWdMIzNkFJ0ma0Nwr16k9k3woH5+gP DMxA== 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:mime-version :message-id:date:subject:cc:to:from; bh=ZElCfoM7pe+e/jvvBHrJdCjOw7sSgLeNO2uCfPh1u2c=; b=KBF4etQZwjclcmOxEa6rjvVkro0KzvAhog107JeIoKsyVjPK9963Zy02CuVhJvg7EO dxcVudp6h3sedRKZ/btGtwSCtMsRY8Yn7kGJecFNmGUdKwifKUGYrtUyrHQ9YWdC/lJh bJVeU+POnLLIC7lsHzZirKOH+A5npI4zwj1M4Yh3uNPVTbK8DuJCsEi88jh2ZCBAdVlo AHDdxVs38vVk0xKVfLbUloMPCuRE82fshtNQZapayZmaQX46mdebaOBXuLxxKWTzYDbR 14CLtJ0+QJJq4xE5xb+JuBiR5q7KXmMKBmEGyEsxS76PnnuuPpBeq2IXLnakfXTX2ATr /poA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si10194890edc.310.2020.09.14.20.06.58; Mon, 14 Sep 2020 20:07:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726094AbgIODD5 (ORCPT + 99 others); Mon, 14 Sep 2020 23:03:57 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:40018 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726057AbgIODDz (ORCPT ); Mon, 14 Sep 2020 23:03:55 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 029D0528DAA3FAEC8488; Tue, 15 Sep 2020 11:03:54 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 11:03:48 +0800 From: Liu Shixin To: James Morse CC: , , Liu Shixin Subject: [PATCH -next] firmware: arm_sdei: simplify the return expression of sdei_device_freeze() Date: Tue, 15 Sep 2020 11:26:25 +0800 Message-ID: <20200915032625.1772413-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- 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) -- 2.25.1