]> git.baikalelectronics.ru Git - kernel.git/commit
ipc/mqueue.c: refactor failure handling
authorJiri Slaby <jslaby@suse.cz>
Tue, 26 Jul 2011 23:08:46 +0000 (16:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 23:49:44 +0000 (16:49 -0700)
commit558da55dd5750634434886f05c5304f33b549321
treefbead768d176d82e5e1ff6021c030b8cd6d26c9f
parenta7bb38799e54500795e09f5e74300ac5759177ee
ipc/mqueue.c: refactor failure handling

If new_inode fails to allocate an inode we need only to return with
NULL.  But now we test the opposite and have all the work in a nested
block.  So do the opposite to save one indentation level (and remove
unnecessary line breaks).

This is only a preparation/cleanup for the next patch where we fix up
return values from mqueue_get_inode.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/mqueue.c