summaryrefslogtreecommitdiffstats
path: root/net/mac802154/llsec.c
diff options
context:
space:
mode:
authorPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>2014-05-20 13:14:23 +0200
committerDavid S. Miller <davem@davemloft.net>2014-05-22 15:24:13 -0400
commit62e9c117eec56a3c9611613a3aa90c9671244d33 (patch)
tree102a05e3d4e325e8551a342c6a8b587571d29adf /net/mac802154/llsec.c
parent6f3eabcd041aa062cfabd2fc62194a33b507f51c (diff)
downloadlinux-62e9c117eec56a3c9611613a3aa90c9671244d33.tar.bz2
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/llsec.c')
-rw-r--r--net/mac802154/llsec.c2
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)
rc = llsec_do_encrypt(skb, sec, &hdr, key);
llsec_key_put(key);
- return rc < 0 ? rc : 0;
+ return rc;
fail_read:
read_unlock_bh(&sec->lock);