Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3993739pxb; Mon, 4 Oct 2021 14:42:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcWSiupbTrb4XbXMmyticH5mH003Qgww/AtPDBTbhpWKKeOdC+5WfaT4lU3i2lYObNPhWf X-Received: by 2002:a62:160e:0:b0:445:1642:5069 with SMTP id 14-20020a62160e000000b0044516425069mr28090587pfw.66.1633383738188; Mon, 04 Oct 2021 14:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633383738; cv=none; d=google.com; s=arc-20160816; b=uawBMKOTuO4KwOQT27kUyoUOTfhBc+FYfwo9kwYaknp7Buy40cAB20SN/B5p3fjyA2 xfNTEKpouLPuuJNTM5YSXwSBbacwKim2kyIVlQfiuPSEKCUtneImmE7/t+XTTvJcnHHc VoW2UW73rZ5JvSNv82s8zTHciiE+1UczcmisdXtXKTh6dgWNHHN+hqGoypGMpTFpf9gp c5+gqgDn2C0cgVg8gt0gtvu/aRgt8KoEUPKU4W33MDVjUO9++Qei6wQLxAdr74mkNlyn QwushErYIFR836sC7tnPE2eaIM1k6GbAuMrBZ9wXb9rljgwHCO+ri+HyfS2DJbv7P184 xS4Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3KewdxxXVSjRLpcLPGgLRbliSkVHsEN188ZiuRWFl8M=; b=fwow2BAhRHM8wx13d8F1fc/cf/onyc9WvLeMwN2HbLY4iqf81ZH0f5A6eIHwbD/MEj xwFe4sj5j5ptERREy+bPHG7vEhfXUcb+U8TsrPb01yrVCEXDng7ZraRDLnDnR1nQp3eQ FJW7xvD/I9AbY2V0cr/uC6egziOQML+/axMDlzxpJcyq9oRt1DQ9okYzlSoA5hhgpo3T OK0+XzRwDYXZ4wml4Zy4dFol9HnPqZSFr9818RIR5f4espNCUD5IZKuc7xQCqoO0My1/ vmtBXNJZYb0b8E97/osf0C9j0EBbsuv2pH5fIgLlOp5Kor9WdwBnmfD1rb1wlO2frxeY QR3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mZ39mtfY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si4145018pju.139.2021.10.04.14.42.05; Mon, 04 Oct 2021 14:42:18 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mZ39mtfY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238543AbhJDNmi (ORCPT + 99 others); Mon, 4 Oct 2021 09:42:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:52372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238566AbhJDNkn (ORCPT ); Mon, 4 Oct 2021 09:40:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 33E7163255; Mon, 4 Oct 2021 13:18:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353526; bh=pnAon7yfRzwGyRfVkiSoeAlK+BxxGfrD3Hs4dgfcmdY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mZ39mtfYHxGoWFrf4zP0XQQ07xua3hylUNV1jlyBOhGBTOqbyV/Nr/F15VktBG99Y ymsd5WFl9PXtOcFvkjocUUhRsx6185qNZg8GsNJ5Ja5jx0lT3bRmmUWVnjLQVRh3aV MOx/xF4Cvt1hXIQ475ns5c1cY3JrGjmab/ExJxhg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dongliang Mu , "David S. Miller" , Ovidiu Panait Subject: [PATCH 5.14 162/172] usb: hso: remove the bailout parameter Date: Mon, 4 Oct 2021 14:53:32 +0200 Message-Id: <20211004125050.201953232@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dongliang Mu commit dcb713d53e2eadf42b878c12a471e74dc6ed3145 upstream. There are two invocation sites of hso_free_net_device. After refactoring hso_create_net_device, this parameter is useless. Remove the bailout in the hso_free_net_device and change the invocation sites of this function. Signed-off-by: Dongliang Mu Signed-off-by: David S. Miller [Backport this cleanup patch to 5.10 and 5.14 in order to keep the codebase consistent with the 4.14/4.19/5.4 patchseries] Signed-off-by: Ovidiu Panait Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/hso.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -2353,7 +2353,7 @@ static int remove_net_device(struct hso_ } /* Frees our network device */ -static void hso_free_net_device(struct hso_device *hso_dev, bool bailout) +static void hso_free_net_device(struct hso_device *hso_dev) { int i; struct hso_net *hso_net = dev2net(hso_dev); @@ -2376,7 +2376,7 @@ static void hso_free_net_device(struct h kfree(hso_net->mux_bulk_tx_buf); hso_net->mux_bulk_tx_buf = NULL; - if (hso_net->net && !bailout) + if (hso_net->net) free_netdev(hso_net->net); kfree(hso_dev); @@ -3136,7 +3136,7 @@ static void hso_free_interface(struct us rfkill_unregister(rfk); rfkill_destroy(rfk); } - hso_free_net_device(network_table[i], false); + hso_free_net_device(network_table[i]); } } }