diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-01-02 15:49:41 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-01-03 01:51:51 +0100 |
commit | 36cf942adf78c215f381554dfbac0ef8d05a6c21 (patch) | |
tree | bf7b7951446702fc74bf11ad11dbd18ddae89e3d /net/mac802154 | |
parent | 9dc52d49e28c05411ac855cf9223c48ed819507b (diff) | |
download | op-kernel-dev-36cf942adf78c215f381554dfbac0ef8d05a6c21.zip op-kernel-dev-36cf942adf78c215f381554dfbac0ef8d05a6c21.tar.gz |
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')
-rw-r--r-- | net/mac802154/cfg.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/mac802154/cfg.c b/net/mac802154/cfg.c index 7d31da5..5d9f68c 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 |