ieee802154: 6lowpan: fix sign of errno return val
authorAlexander Aring <alex.aring@gmail.com>
Mon, 6 Oct 2014 09:00:52 +0000 (11:00 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 05:56:22 +0000 (07:56 +0200)
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>
net/ieee802154/6lowpan_rtnl.c

index 2d547ea190e898c0c3bd956309f8ce0f9197ac4b..c7e07b8a8f9fad7ea4db75deb9cb5cbb6539682e 100644 (file)
@@ -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);