Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3134217pxk; Mon, 21 Sep 2020 06:12:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGjIzcxRjlgWTZsl0O2hxlMFS4v0A6nJ9uSFCRiTjARQ7Z2YU8F8oImbc+bxNHKJEle2MK X-Received: by 2002:a17:906:364b:: with SMTP id r11mr48796876ejb.48.1600693949129; Mon, 21 Sep 2020 06:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600693949; cv=none; d=google.com; s=arc-20160816; b=vaN0OJtJMup53vt4kvsZvoyY35bquD/awVd7LEQXuzk15YouAvmqHT/C/ArkEYlPsP +DPU/KA+oPYrq0Ou1yfhRCW8mbpM4/i3oKB98zt7cck6yIOTmssmRDpuHhN9DrWRtopG glAfbaHNMk8SCKv5S+hoiuKownR6y3KsPLCudQBuFc/D3k78J9B3QbgtFqUNEWoi/21T J1RZDJhc2FkbilOXFTXjrK0dis1/2ayte35xINOhv9bv73PRcOgnNs8+045HgSHHZ2Dg oXcS6b3TmeMIEmGzyG1KqQmqj3g/ulhe7sFJ2aAJKJSq49Ob2194yceE4fYuqI8me2vK SuqQ== 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=QntwYDO1vfbj7c9i3Pf9w1LNnEt+ChmGN4kPJUr3a0o=; b=zWUjsse2cWaRq2/T/0ssjO0nrQjecQwI0aDm2jqCJazDa8q5YKnFI1iEg109/Id3+Z wQzeIB4g4HjfCyH3yshd0yD/4Z9DAPQGgvx6Jcrw500neB5ehvQnK2zUdvL5p7G95Gf0 xf7cpmnnnkHAWO8Ty0WCsKFEj1bYgGMe5AMKlD/T3B6kdedPyH1ObHItvUf3fDKcxzWu 8xlwzd5yjjATbwvwzbsV30/GwPjuL0bOK0BvRbpcOt2sAoGrw9LnwELm+WlwVYmg5W6K 6MVBOoLQXYcqBH7G+/764uvxdvMrbSro6ByThLeLfkrw1r/q4DCKRheB5S5MuiKoWtzZ I/mw== 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 r10si8045144ejb.340.2020.09.21.06.12.04; Mon, 21 Sep 2020 06:12:29 -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 S1727358AbgIUNKc (ORCPT + 99 others); Mon, 21 Sep 2020 09:10:32 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:42712 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727301AbgIUNK1 (ORCPT ); Mon, 21 Sep 2020 09:10:27 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id ED9D4AE5DA830F33F2A2; Mon, 21 Sep 2020 21:10:17 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:10:10 +0800 From: Qinglang Miao To: Jeff Kirsher CC: "David S. Miller" , Jakub Kicinski , , , , Qinglang Miao Subject: [PATCH -next] ice: simplify the return expression of ice_finalize_update() Date: Mon, 21 Sep 2020 21:10:34 +0800 Message-ID: <20200921131034.92063-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/net/ethernet/intel/ice/ice_fw_update.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_fw_update.c b/drivers/net/ethernet/intel/ice/ice_fw_update.c index deaefe00c..292d87b99 100644 --- a/drivers/net/ethernet/intel/ice/ice_fw_update.c +++ b/drivers/net/ethernet/intel/ice/ice_fw_update.c @@ -608,14 +608,9 @@ static int ice_finalize_update(struct pldmfw *context) struct ice_fwu_priv *priv = container_of(context, struct ice_fwu_priv, context); struct netlink_ext_ack *extack = priv->extack; struct ice_pf *pf = priv->pf; - int err; /* Finally, notify firmware to activate the written NVM banks */ - err = ice_switch_flash_banks(pf, priv->activate_flags, extack); - if (err) - return err; - - return 0; + return ice_switch_flash_banks(pf, priv->activate_flags, extack); } static const struct pldmfw_ops ice_fwu_ops = { -- 2.23.0