Files
linux-st/include/linux
Akinobu Mita b957e043ee notifier: change notifier_from_errno(0) to return NOTIFY_OK
This changes notifier_from_errno(0) to be NOTIFY_OK instead of
NOTIFY_STOP_MASK | NOTIFY_OK.

Currently, the notifiers which return encapsulated errno value have to
do something like this:

	err = do_something(); // returns -errno
	if (err)
		return notifier_from_errno(err);
	else
		return NOTIFY_OK;

This change makes the above code simple:

	err = do_something(); // returns -errno

	return return notifier_from_errno(err);

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-05-27 09:12:47 -07:00
..
2010-05-17 22:39:48 -07:00
2010-05-19 13:38:54 -04:00
2010-05-21 19:30:44 +02:00
2010-05-25 08:07:01 -07:00
2010-05-27 09:12:42 -07:00
2010-05-21 09:34:29 -07:00
2010-05-21 09:37:29 -07:00
2010-05-19 13:44:27 +10:00
2010-05-21 19:30:44 +02:00
2010-05-27 09:12:43 -07:00
2010-05-21 09:34:29 -07:00
2010-05-19 22:15:46 +09:30