From patchwork Wed Nov 16 01:58:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiawen Wu X-Patchwork-Id: 13044328 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 575B1C433FE for ; Wed, 16 Nov 2022 02:00:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231548AbiKPCAK (ORCPT ); Tue, 15 Nov 2022 21:00:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231666AbiKPB76 (ORCPT ); Tue, 15 Nov 2022 20:59:58 -0500 Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73A8B2A97C for ; Tue, 15 Nov 2022 17:59:51 -0800 (PST) X-QQ-mid: bizesmtp73t1668563983tly43l9x Received: from wxdbg.localdomain.com ( [183.129.236.74]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 16 Nov 2022 09:59:33 +0800 (CST) X-QQ-SSF: 01400000000000H0W000000A0000000 X-QQ-FEAT: Gq6/1HjPYVWnCBgfKLrD1glblj7p5aEzEzYS2LdMGpifoTkR5l8v/6VZcej6s chooZaT9STSfvIktkdGvhtqx3FrpgntWjwBgEtFDaMsZihbud8wEGNNkTPYdKU7wH/GvNN9 1UyeIkKV62wIaoXgWxu0l7lJJzj0JucTJssck8/G7CWm8OM+1sW8iTUx9ztSVf/rhTEVJkU DVVQRDHw9WWTZVIh8TbYcjagzTg5fBcPcSIFXfPKUYvDV2DUjdCYKsNf6jS9RCRRtRUrWEz K3N9HFF+q6Ks3BG7xVaRy8UZ1UgnVn1AKDo6MJuknXGVR85exzoKaKzTWLo9znQJWJeTrtw 1fa2eBZLEu0CLAUBdBZJPEwbGpdgsTkRmJzw4EkT/cNbKO+qLM= X-QQ-GoodBg: 2 From: Jiawen Wu To: netdev@vger.kernel.org, mengyuanlou@net-swift.com Cc: Jiawen Wu Subject: [PATCH net-next] net: libwx: Fix dead code for duplicate check Date: Wed, 16 Nov 2022 09:58:35 +0800 Message-Id: <20221116015835.1187783-1-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybglogicsvr:qybglogicsvr5 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Fix duplicate check on polling timeout. Fixes: 1efa9bfe58c5 ("net: libwx: Implement interaction with firmware") Signed-off-by: Jiawen Wu Reviewed-by: Leon Romanovsky --- drivers/net/ethernet/wangxun/libwx/wx_hw.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/wangxun/libwx/wx_hw.c b/drivers/net/ethernet/wangxun/libwx/wx_hw.c index 1eb7388f1dd5..c57dc3238b3f 100644 --- a/drivers/net/ethernet/wangxun/libwx/wx_hw.c +++ b/drivers/net/ethernet/wangxun/libwx/wx_hw.c @@ -203,8 +203,6 @@ int wx_host_interface_command(struct wx_hw *wxhw, u32 *buffer, status = read_poll_timeout(rd32, hicr, hicr & WX_MNG_MBOX_CTL_FWRDY, 1000, timeout * 1000, false, wxhw, WX_MNG_MBOX_CTL); - if (status) - goto rel_out; /* Check command completion */ if (status) {