diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-06 11:00:52 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-25 07:56:22 +0200 |
commit | c0bffc7ddc1383d20efa5c1a36b81e2df48cf65c (patch) | |
tree | 3ba142be6dfac705c24f970a04d13dfde44b254f /net/ieee802154 | |
parent | ieee802154: reassembly: fix tag byteorder (diff) | |
download | linux-c0bffc7ddc1383d20efa5c1a36b81e2df48cf65c.tar.xz linux-c0bffc7ddc1383d20efa5c1a36b81e2df48cf65c.zip |
ieee802154: 6lowpan: fix sign of errno return val
This patch fix ERR_PTR(-rc) to ERR_PTR(rc). The variable rc is already a
negative errno value.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/6lowpan_rtnl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowpan_rtnl.c index 2d547ea190e8..c7e07b8a8f9f 100644 --- a/net/ieee802154/6lowpan_rtnl.c +++ b/net/ieee802154/6lowpan_rtnl.c @@ -233,7 +233,7 @@ lowpan_alloc_frag(struct sk_buff *skb, int size, &master_hdr->source, size); if (rc < 0) { kfree_skb(frag); - return ERR_PTR(-rc); + return ERR_PTR(rc); } } else { frag = ERR_PTR(-ENOMEM); |