From: Stefan Schmidt <stefan@osg.samsung.com>
To: Alexander Aring <alex.aring@gmail.com>, linux-wpan@vger.kernel.org
Cc: linux-bluetooth@vger.kernel.org, kernel@pengutronix.de,
mcr@sandelman.ca, lukasz.duda@nordicsemi.no
Subject: Re: [PATCH bluetooth-next 2/2] ieee802154: 6lowpan: fix return of netdev notifier
Date: Fri, 15 Jan 2016 15:39:53 +0100 [thread overview]
Message-ID: <569904B9.7080908@osg.samsung.com> (raw)
In-Reply-To: <1452459025-13884-3-git-send-email-alex.aring@gmail.com>
Hello.
On 10/01/16 21:50, Alexander Aring wrote:
> This patch fixed the return value of netdev notifier. If the command is
> a don't care a NOTIFY_DONE should be returned. If the command matched a
> NOTIFY_OK should be returned.
>
> Signed-off-by: Alexander Aring <alex.aring@gmail.com>
> ---
> net/ieee802154/6lowpan/core.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/net/ieee802154/6lowpan/core.c b/net/ieee802154/6lowpan/core.c
> index 737c87a..0023c90 100644
> --- a/net/ieee802154/6lowpan/core.c
> +++ b/net/ieee802154/6lowpan/core.c
> @@ -207,7 +207,7 @@ static int lowpan_device_event(struct notifier_block *unused,
> struct net_device *wdev = netdev_notifier_info_to_dev(ptr);
>
> if (wdev->type != ARPHRD_IEEE802154)
> - goto out;
> + return NOTIFY_DONE;
>
> switch (event) {
> case NETDEV_UNREGISTER:
> @@ -219,11 +219,10 @@ static int lowpan_device_event(struct notifier_block *unused,
> lowpan_dellink(wdev->ieee802154_ptr->lowpan_dev, NULL);
> break;
> default:
> - break;
> + return NOTIFY_DONE;
> }
>
> -out:
> - return NOTIFY_DONE;
> + return NOTIFY_OK;
> }
>
> static struct notifier_block lowpan_dev_notifier = {
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
regards
Stefan Schmidt
next prev parent reply other threads:[~2016-01-15 14:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-10 20:50 [PATCH bluetooth-next 0/2] 6lowpan: stateful compression support Alexander Aring
2016-01-10 20:50 ` [PATCH bluetooth-next 1/2] 6lowpan: iphc: add support for stateful compression Alexander Aring
2016-01-15 14:39 ` Stefan Schmidt
2016-01-19 9:12 ` Duda, Lukasz
2016-01-10 20:50 ` [PATCH bluetooth-next 2/2] ieee802154: 6lowpan: fix return of netdev notifier Alexander Aring
2016-01-15 14:39 ` Stefan Schmidt [this message]
2016-01-19 9:05 ` [PATCH bluetooth-next 0/2] 6lowpan: stateful compression support Duda, Lukasz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=569904B9.7080908@osg.samsung.com \
--to=stefan@osg.samsung.com \
--cc=alex.aring@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-wpan@vger.kernel.org \
--cc=lukasz.duda@nordicsemi.no \
--cc=mcr@sandelman.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox