summaryrefslogtreecommitdiffstats
path: root/net/mac802154/cfg.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-01-02 15:49:41 +0100
committerMarcel Holtmann <marcel@holtmann.org>2015-01-03 01:51:51 +0100
commit36cf942adf78c215f381554dfbac0ef8d05a6c21 (patch)
treebf7b7951446702fc74bf11ad11dbd18ddae89e3d /net/mac802154/cfg.c
parent9dc52d49e28c05411ac855cf9223c48ed819507b (diff)
downloadlinux-36cf942adf78c215f381554dfbac0ef8d05a6c21.tar.bz2
mac802154: fix kbuild test robot warning
This patch fixs the following kbuild test robot warning: coccinelle warnings: (new ones prefixed by >>) >> net/mac802154/cfg.c:53:1-3: WARNING: PTR_ERR_OR_ZERO can be used Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/cfg.c')
-rw-r--r--net/mac802154/cfg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/mac802154/cfg.c b/net/mac802154/cfg.c
index 7d31da503dcf..5d9f68c75e5f 100644
--- a/net/mac802154/cfg.c
+++ b/net/mac802154/cfg.c
@@ -51,10 +51,7 @@ ieee802154_add_iface(struct wpan_phy *phy, const char *name,
struct net_device *err;
err = ieee802154_if_add(local, name, type, extended_addr);
- if (IS_ERR(err))
- return PTR_ERR(err);
-
- return 0;
+ return PTR_ERR_OR_ZERO(err);
}
static int