git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7d2f73
)
fanotify: cleanups around return codes
author
Eric Paris
<eparis@redhat.com>
Tue, 7 Dec 2010 19:32:35 +0000
(14:32 -0500)
committer
Eric 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