diff options
author | Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 2014-05-20 07:14:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-22 15:24:13 -0400 |
commit | 62e9c117eec56a3c9611613a3aa90c9671244d33 (patch) | |
tree | 102a05e3d4e325e8551a342c6a8b587571d29adf /net/mac802154 | |
parent | 6f3eabcd041aa062cfabd2fc62194a33b507f51c (diff) |
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: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac802154')
-rw-r--r-- | net/mac802154/llsec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c index 6edcb20c2e70..08d08cbf51f4 100644 --- a/net/mac802154/llsec.c +++ b/net/mac802154/llsec.c | |||
@@ -773,7 +773,7 @@ int mac802154_llsec_encrypt(struct mac802154_llsec *sec, struct sk_buff *skb) | |||
773 | rc = llsec_do_encrypt(skb, sec, &hdr, key); | 773 | rc = llsec_do_encrypt(skb, sec, &hdr, key); |
774 | llsec_key_put(key); | 774 | llsec_key_put(key); |
775 | 775 | ||
776 | return rc < 0 ? rc : 0; | 776 | return rc; |
777 | 777 | ||
778 | fail_read: | 778 | fail_read: |
779 | read_unlock_bh(&sec->lock); | 779 | read_unlock_bh(&sec->lock); |