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/6lowpan_rtnl.c | |
parent | f870b8c6314c85712ff1e82765a902d895b73f21 (diff) | |
download | op-kernel-dev-c0bffc7ddc1383d20efa5c1a36b81e2df48cf65c.zip op-kernel-dev-c0bffc7ddc1383d20efa5c1a36b81e2df48cf65c.tar.gz |
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/6lowpan_rtnl.c')
-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); |