diff options
author | Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 2014-05-20 11:14:23 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-22 19:24:13 (GMT) |
commit | 62e9c117eec56a3c9611613a3aa90c9671244d33 (patch) | |
tree | 102a05e3d4e325e8551a342c6a8b587571d29adf /net/mac802154/llsec.c | |
parent | 6f3eabcd041aa062cfabd2fc62194a33b507f51c (diff) | |
download | linux-62e9c117eec56a3c9611613a3aa90c9671244d33.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c index 6edcb20..08d08cb 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); |