Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2627098pxk; Mon, 14 Sep 2020 20:07:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykr4uMM7U+60TIdkxNRweVsJqxN4DrQqDEwA3MAs9nGB66CFAHhRAeC4BDtsoj5+EatY2w X-Received: by 2002:a17:906:c1c6:: with SMTP id bw6mr18508203ejb.374.1600139226559; Mon, 14 Sep 2020 20:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600139226; cv=none; d=google.com; s=arc-20160816; b=Aa34pwfpP7A0igR4r8nhJP/HklQlpt3v9Iq8H9iTwk+do5IpphzMwaXMHa/jhIGSHD uBe4R4W8AnxihFFTyC3Nr0tWXXyl0PPm0y3d1eTUa7v7868CZO7a7j0kkCe7SWuDDiqj UWk4NBpDuVi+8ZF6+H7vL/VTG9IoocebX8J3cDTPUK11LAKd2yTUMFSJOKOz5dGDmiCH hxUOm8vzsiirbRo8HH1eT2afG0Nbgx0ec72/pCqrgXMghamXNhghM0AllFSpQIJRuu3/ yjkWQ607ZGeVjV3xrK774VLyfLDmhMMjK3FkAER3/uQx1+gadCP08sSHLKjjbFRzVOed SQnA== 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=GK9qUFNL3m5EC+P66/MgyzJgRw4Z5gHdgG288O7Zf8A=; b=mCc0lQZ7ja4KSkswBiw4tzfIuF3lJPG/X0qmy6+pTKqgGGSL+maGhINyWpbb0WhTss cFxWap3OxIuE5hE0+wIy6MOn7RXFQW6GXOkk3MoReQEWLsB/kVmkJFwE7TWQtgkVw1yB /4jt1QBoN0jHLu/WE4vXkN7sS8HFT5wh3c9KyRUp7O0YZhhGR/tPRPrvp8cOpqV8nfSZ 2kobcR1Np21G8W44Qmi4gVv6HAs6XE7UWq68jIgCvyWRIgpymag3QNatYnhmYOhwRXIR lcs2aswhvF0EZN9yQUWPRyofh5ZBzi2ZcGwrDxE8v99Aiiul8UvEP+DOOkb8gzqTD7Xl 99LQ== 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 oz18si8438995ejb.598.2020.09.14.20.06.44; Mon, 14 Sep 2020 20:07:06 -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 S1726130AbgIODEC (ORCPT + 99 others); Mon, 14 Sep 2020 23:04:02 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12281 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726034AbgIODD4 (ORCPT ); Mon, 14 Sep 2020 23:03:56 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1A8CDBD57C749919D858; Tue, 15 Sep 2020 11:03:52 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 11:03:44 +0800 From: Liu Shixin To: Sean Wang , Dan Williams , Vinod Koul , Matthias Brugger CC: , , , , "Liu Shixin" Subject: [PATCH -next] dmaengine: mediatek: simplify the return expression of mtk_uart_apdma_runtime_resume() Date: Tue, 15 Sep 2020 11:26:22 +0800 Message-ID: <20200915032622.1772309-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/dma/mediatek/mtk-uart-apdma.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/dma/mediatek/mtk-uart-apdma.c b/drivers/dma/mediatek/mtk-uart-apdma.c index 29f1223b285a..27c07350971d 100644 --- a/drivers/dma/mediatek/mtk-uart-apdma.c +++ b/drivers/dma/mediatek/mtk-uart-apdma.c @@ -624,14 +624,9 @@ static int mtk_uart_apdma_runtime_suspend(struct device *dev) static int mtk_uart_apdma_runtime_resume(struct device *dev) { - int ret; struct mtk_uart_apdmadev *mtkd = dev_get_drvdata(dev); - ret = clk_prepare_enable(mtkd->clk); - if (ret) - return ret; - - return 0; + return clk_prepare_enable(mtkd->clk); } #endif /* CONFIG_PM */ -- 2.25.1