From patchwork Thu Dec 10 14:02:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Yongjun X-Patchwork-Id: 1414196 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4CsFxD0Bsvz9sWx for ; Fri, 11 Dec 2020 01:02:56 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389892AbgLJOCq (ORCPT ); Thu, 10 Dec 2020 09:02:46 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:9865 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389750AbgLJOCZ (ORCPT ); Thu, 10 Dec 2020 09:02:25 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CsFvB2dNNz7C5G; Thu, 10 Dec 2020 22:01:10 +0800 (CST) Received: from ubuntu.network (10.175.138.68) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Dec 2020 22:01:36 +0800 From: Zheng Yongjun To: , , , , CC: , , Zheng Yongjun Subject: [PATCH wireless -next] wireless/ath10k: simplify the return expression of ath10k_ahb_chip_reset() Date: Thu, 10 Dec 2020 22:02:04 +0800 Message-ID: <20201210140204.1774-1-zhengyongjun3@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-Originating-IP: [10.175.138.68] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Simplify the return expression. Signed-off-by: Zheng Yongjun --- drivers/net/wireless/ath/ath10k/ahb.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/ahb.c b/drivers/net/wireless/ath/ath10k/ahb.c index 05a61975c83f..0ba31c0bbd24 100644 --- a/drivers/net/wireless/ath/ath10k/ahb.c +++ b/drivers/net/wireless/ath/ath10k/ahb.c @@ -598,16 +598,10 @@ static int ath10k_ahb_prepare_device(struct ath10k *ar) static int ath10k_ahb_chip_reset(struct ath10k *ar) { - int ret; - ath10k_ahb_halt_chip(ar); ath10k_ahb_clock_disable(ar); - ret = ath10k_ahb_prepare_device(ar); - if (ret) - return ret; - - return 0; + return ath10k_ahb_prepare_device(ar); } static int ath10k_ahb_wake_target_cpu(struct ath10k *ar)