aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-01-05 18:36:07 +0100
committerDavid S. Miller <davem@davemloft.net>2020-01-06 13:39:35 -0800
commitb289ba5e07105548b8219695e5443d807a825eb8 (patch)
treed498ed45793c1c24b2afade999da4fe10121fd82 /scripts/bpf_helpers_doc.py
parentf233789dfcd4b1e08fac86645c31932f88b291bb (diff)
downloadlinux-b289ba5e07105548b8219695e5443d807a825eb8.tar.gz
linux-b289ba5e07105548b8219695e5443d807a825eb8.tar.bz2
linux-b289ba5e07105548b8219695e5443d807a825eb8.zip
gtp: simplify error handling code in 'gtp_encap_enable()'
'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@wanadoo.fr> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions