Commit 62e9c117 authored by Phoebe Buckheister's avatar Phoebe Buckheister Committed by David S. Miller

mac802154: llsec: fold useless return value check

llsec_do_encrypt will never return a positive value, so the restriction
to 0-or-negative on return is useless.
Signed-off-by: default avatarPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f3eabcd
...@@ -773,7 +773,7 @@ int mac802154_llsec_encrypt(struct mac802154_llsec *sec, struct sk_buff *skb) ...@@ -773,7 +773,7 @@ int mac802154_llsec_encrypt(struct mac802154_llsec *sec, struct sk_buff *skb)
rc = llsec_do_encrypt(skb, sec, &hdr, key); rc = llsec_do_encrypt(skb, sec, &hdr, key);
llsec_key_put(key); llsec_key_put(key);
return rc < 0 ? rc : 0; return rc;
fail_read: fail_read:
read_unlock_bh(&sec->lock); read_unlock_bh(&sec->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment