diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-06 09:00:52 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-25 05:56:22 (GMT) |
commit | c0bffc7ddc1383d20efa5c1a36b81e2df48cf65c (patch) | |
tree | 3ba142be6dfac705c24f970a04d13dfde44b254f /net/ieee802154 | |
parent | f870b8c6314c85712ff1e82765a902d895b73f21 (diff) | |
download | linux-c0bffc7ddc1383d20efa5c1a36b81e2df48cf65c.tar.xz |
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 2d547ea..c7e07b8 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); |