Commit 66f635f
gtp: simplify error handling code in 'gtp_encap_enable()'
[ Upstream commit b289ba5 ]
'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>
Stable-dep-of: 7515e37 ("gtp: allow -1 to be specified as file description from userspace")
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent c9cf951 commit 66f635f
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
868 | | - | |
869 | | - | |
| 868 | + | |
870 | 869 | | |
871 | 870 | | |
872 | 871 | | |
873 | 872 | | |
874 | 873 | | |
875 | 874 | | |
876 | 875 | | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
| 876 | + | |
| 877 | + | |
881 | 878 | | |
882 | 879 | | |
883 | 880 | | |
| |||
0 commit comments