From: Guillaume Nault Subject: Re: [PATCH net-next] l2tp: remove switch block in l2tp_nl_cmd_session_create() Date: Wed, 17 Jan 2018 12:32:46 +0100 Message-ID: <20180117113246.GK1422@alphalink.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: davem@davemloft.net, netdev@vger.kernel.org, jchapman@katalix.com To: Lorenzo Bianconi Return-path: Received: from zimbra.alphalink.fr ([217.15.80.77]:48852 "EHLO zimbra.alphalink.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752906AbeAQLct (ORCPT ); Wed, 17 Jan 2018 06:32:49 -0500 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Jan 17, 2018 at 11:41:20AM +0100, Lorenzo Bianconi wrote: > Remove the switch block in l2tp_nl_cmd_session_create() that > checks pseudowire-specific parameters since just L2TP_PWTYPE_ETH and > L2TP_PWTYPE_PPP are currently supported and no actual checks are > performed. Moreover the L2TP_PWTYPE_IP/default case presents a harmless > issue in error handling (break instead of goto out_tunnel) > Acked-by: Guillaume Nault