cc2520: remove 'ret' goto label
authorVarka Bhadram <varkabhadram@gmail.com>
Fri, 26 Dec 2014 04:43:39 +0000 (10:13 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Dec 2014 06:15:55 +0000 (07:15 +0100)
commitf50f1c37a663b7b76013638f60a400a16ddd2158
tree83bf6f537c0d23654eb3df318d7ef3fcb097090b
parent5eb9f8caac333842e840325fe7299465bcdf2111
cc2520: remove 'ret' goto label

If allocation of memory fails instead of going to ret goto label
and returning from there, we can directly return -ENOMEM on failure.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/cc2520.c