mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
9dc52d49e2
commit
36cf942adf
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue