]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipc/mqueue.c: refactor failure handling
authorJiri Slaby <jslaby@suse.cz>
Tue, 26 Jul 2011 23:08:46 +0000 (16:08 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:43 +0000 (11:40 -0700)
commit7688ef38157babe5bb0e24b3779e769f730b85fc
treea6d9f5865af8d2df75bb80f0e35d3344c79d2fc9
parentb7d4d461ad51ad98992a1b4d0b46f86ccabd1ee0
ipc/mqueue.c: refactor failure handling

commit 04715206c0c2fd4ec5ca77fa51e3a5b41ce71492 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
ipc/mqueue.c