2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-09 14:14:00 +08:00

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>
This commit is contained in:
Alexander Aring 2014-10-06 11:00:52 +02:00 committed by Marcel Holtmann
parent f870b8c631
commit c0bffc7ddc

View 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);