提交 62e9c117 编写于 作者: P Phoebe Buckheister 提交者: 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: NPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册