Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2953043pxk; Mon, 21 Sep 2020 01:04:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPjZRRp1KFsfveUq3ymdfS9A22n9aJFt/ERetUiPi8JrMwKV+7fse1o6ZjvmfcE78/Yez1 X-Received: by 2002:a50:9f6f:: with SMTP id b102mr50150196edf.272.1600675499383; Mon, 21 Sep 2020 01:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675499; cv=none; d=google.com; s=arc-20160816; b=Onj9hAhWaWIMHU+Nxgg8zTZH6p8HRSL6EiQNB9N8f1yZI+uwYE+HX/UZ63ztCau6Hj cXlHMJiE2pUDIK2keVT5ZGjUoOste541+8f22tT9/FbGDrmzNCPmz/eXRFFhMqDMQKQr k7lx+cp7GKN5qsS2PsfClTbBkNx+GuE4hxpxlld7j/xVJK4zIiqk9dskx+EaLVPNWHjN NNgdlpZCpM/6IKICQkW7PhsI8LG6d6zEm72IUdexH+lxbBSJjj8G22pwlg6obXtbtw7y QLPe1u1F0PDryIh40/qFFNmFa8u2//2UrHz55hGCYHyRcnUWHM+Be2H6D+NwD4SAWn/T rJjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Nx/BZjI3S9s1k0ed82qwfE74nrxv4yoh8TUne442Zic=; b=fRpSVCYCN+h7DMpUEgVvmRtQP4PHxb8DiZLmbpSjwUhPUPp4dICNarQtQuL5VtWpdW NlAg+Ww9o88Nk1dSarZLPoEySgLTm8O/9s3ZStd2kqeaZyybQKcVJ/PZFjyzrXUZn9Gz IVrfXGE485GVTJ9dHnWwIJIg218wZwgtfpAiUCs8Gpj51MCdQiZZc64Lm/6exX/oK/sc YDLtotvak8e28T4sM5zLF33Dw+nn3a51GnaNtVDxomlXiZ6WcppVd6FZrvXB/u7mn2zG jStHI9/QlOpNkyfbI5NmBcNjMQ2Fvm0dwCI38fxDsHZ+d5joxzkrLiAwBIYoXg6h7ASh 4cwg== 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 t5si8450861edi.523.2020.09.21.01.04.36; Mon, 21 Sep 2020 01:04:59 -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 S1726949AbgIUICn (ORCPT + 99 others); Mon, 21 Sep 2020 04:02:43 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:48580 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726643AbgIUICi (ORCPT ); Mon, 21 Sep 2020 04:02:38 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 21D26EA4AE943D9D3537; Mon, 21 Sep 2020 16:02:36 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:26 +0800 From: Liu Shixin To: Jens Axboe CC: , , Liu Shixin Subject: [PATCH -next] sata, highbank: simplify the return expression of ahci_highbank_suspend Date: Mon, 21 Sep 2020 16:24:51 +0800 Message-ID: <20200921082451.2592033-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/ata/sata_highbank.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index ad3893c62572..64b2ef15ec19 100644 --- a/drivers/ata/sata_highbank.c +++ b/drivers/ata/sata_highbank.c @@ -571,7 +571,6 @@ static int ahci_highbank_suspend(struct device *dev) struct ahci_host_priv *hpriv = host->private_data; void __iomem *mmio = hpriv->mmio; u32 ctl; - int rc; if (hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { dev_err(dev, "firmware update required for suspend/resume\n"); @@ -588,11 +587,7 @@ static int ahci_highbank_suspend(struct device *dev) writel(ctl, mmio + HOST_CTL); readl(mmio + HOST_CTL); /* flush */ - rc = ata_host_suspend(host, PMSG_SUSPEND); - if (rc) - return rc; - - return 0; + return ata_host_suspend(host, PMSG_SUSPEND); } static int ahci_highbank_resume(struct device *dev) -- 2.25.1