fanotify: cleanups around return codes
authorEric Paris <eparis@redhat.com>
Tue, 7 Dec 2010 19:32:35 +0000 (14:32 -0500)
committerEric Paris <eparis@redhat.com>
Wed, 15 Dec 2010 18:58:46 +0000 (13:58 -0500)
I just really happen to like

ret = -ENOMEM;
obj = kmalloc()
if (!obj)
goto out;

As opposed to setting ret inside the conditional.  I also noticed that a
two functions were always returning 0 when they should have been passing
the errors back up the stack.  Fix both.

Signed-off-by: Eric Paris <eparis@redhat.com>

No differences found