diff options
Diffstat (limited to 'net/key')
-rw-r--r-- | net/key/af_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index 43040e97c474..d87c22df6f1e 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -565,12 +565,12 @@ pfkey_proto2satype(uint16_t proto) | |||
565 | 565 | ||
566 | static uint8_t pfkey_proto_to_xfrm(uint8_t proto) | 566 | static uint8_t pfkey_proto_to_xfrm(uint8_t proto) |
567 | { | 567 | { |
568 | return (proto == IPSEC_PROTO_ANY ? 0 : proto); | 568 | return proto == IPSEC_PROTO_ANY ? 0 : proto; |
569 | } | 569 | } |
570 | 570 | ||
571 | static uint8_t pfkey_proto_from_xfrm(uint8_t proto) | 571 | static uint8_t pfkey_proto_from_xfrm(uint8_t proto) |
572 | { | 572 | { |
573 | return (proto ? proto : IPSEC_PROTO_ANY); | 573 | return proto ? proto : IPSEC_PROTO_ANY; |
574 | } | 574 | } |
575 | 575 | ||
576 | static inline int pfkey_sockaddr_len(sa_family_t family) | 576 | static inline int pfkey_sockaddr_len(sa_family_t family) |