From: Eric Paris Date: Tue, 7 Dec 2010 19:32:35 +0000 (-0500) Subject: fanotify: cleanups around return codes X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77d78734040cf714b6d7e1f04732fe127d44f003;p=pandora-kernel.git fanotify: cleanups around return codes 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 --- Reading git-diff-tree failed