From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] sctp: remove unnecessary asoc in sctp_has_association Date: Tue, 27 Mar 2018 10:22:36 -0400 (EDT) Message-ID: <20180327.102236.313919266340860945.davem@davemloft.net> References: <955d9f51fafeb670cb4468e6253f4e54cd3c90f0.1522054500.git.lucien.xin@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-sctp@vger.kernel.org, marcelo.leitner@gmail.com, nhorman@tuxdriver.com To: lucien.xin@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:40116 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbeC0OWi (ORCPT ); Tue, 27 Mar 2018 10:22:38 -0400 In-Reply-To: <955d9f51fafeb670cb4468e6253f4e54cd3c90f0.1522054500.git.lucien.xin@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Xin Long Date: Mon, 26 Mar 2018 16:55:00 +0800 > After Commit dae399d7fdee ("sctp: hold transport instead of assoc > when lookup assoc in rx path"), it put transport instead of asoc > in sctp_has_association. Variable 'asoc' is not used any more. > > So this patch is to remove it, while at it, it also changes the > return type of sctp_has_association to bool, and does the same > for it's caller sctp_endpoint_is_peeled_off. > > Signed-off-by: Xin Long Since this is just a cleanup and a simplification, and doesn't fix any bugs, I'm applying this to net-next. Thanks.