From simon.horman at netronome.com Mon Jan 6 08:59:47 2020 From: simon.horman at netronome.com (Simon Horman) Date: Mon, 06 Jan 2020 08:59:47 -0000 Subject: [PATCH] gtp: simplify error handling code in 'gtp_encap_enable()' In-Reply-To: <20200105173607.5456-1-christophe.jaillet@wanadoo.fr> References: <20200105173607.5456-1-christophe.jaillet@wanadoo.fr> Message-ID: <20200106085943.GB10460@netronome.com> On Sun, Jan 05, 2020 at 06:36:07PM +0100, Christophe JAILLET wrote: > 'gtp_encap_disable_sock(sk)' handles the case where sk is NULL, so there > is no need to test it before calling the function. > > This saves a few line of code. > > Signed-off-by: Christophe JAILLET Reviewed-by: Simon Horman From davem at redhat.com Mon Jan 6 21:46:17 2020 From: davem at redhat.com (David Miller) Date: Mon, 06 Jan 2020 21:46:17 -0000 Subject: [PATCH] gtp: simplify error handling code in 'gtp_encap_enable()' In-Reply-To: <20200105173607.5456-1-christophe.jaillet@wanadoo.fr> References: <20200105173607.5456-1-christophe.jaillet@wanadoo.fr> Message-ID: <20200106.133954.516759492863458363.davem@redhat.com> From: Christophe JAILLET Date: Sun, 5 Jan 2020 18:36:07 +0100 > 'gtp_encap_disable_sock(sk)' handles the case where sk is NULL, so there > is no need to test it before calling the function. > > This saves a few line of code. > > Signed-off-by: Christophe JAILLET Applied to net-next.