diff options
author | Jan Kara <jack@suse.cz> | 2014-04-03 23:46:35 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-04 01:20:51 +0200 |
commit | d8aaab4f619acfbfafc91d94b15c2932457c65fa (patch) | |
tree | d73ebf86269bf349e2949dfe14dbb2f36f179a59 /drivers/rtc | |
parent | fanotify: convert access_mutex to spinlock (diff) | |
download | linux-d8aaab4f619acfbfafc91d94b15c2932457c65fa.tar.xz linux-d8aaab4f619acfbfafc91d94b15c2932457c65fa.zip |
fanotify: reorganize loop in fanotify_read()
Swap the error / "read ok" branches in the main loop of fanotify_read().
We will grow the "read ok" part in the next patch and this makes the
indentation easier. Also it is more common to have error conditions
inside an 'if' instead of the fast path.
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Eric Paris <eparis@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions