[PATCH] gtp: simplify error handling code in 'gtp_encap_enable()'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-net-gprs@lists.osmocom.org/.

David Miller davem at redhat.com
Mon Jan 6 21:46:17 UTC 2020


From: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
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 <christophe.jaillet at wanadoo.fr>

Applied to net-next.




More information about the osmocom-net-gprs mailing list