diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-17 21:00:07 +0200 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2017-09-14 14:58:29 -0400 |
commit | 07a258531c7550f8bb481dfe2ec12bb876224487 (patch) | |
tree | 2558baccb7239c3c6d1f4167434e24637dd49dfb /fs/orangefs/super.c | |
parent | 121744440582004a1751c688a2622e5dfeaae09d (diff) |
orangefs: Delete error messages for a failed memory allocation in five functions
Omit an extra message for a memory allocation failure in these functions.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/super.c')
-rw-r--r-- | fs/orangefs/super.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index 5a1bed6c8c6a..47f3fb9cbec4 100644 --- a/fs/orangefs/super.c +++ b/fs/orangefs/super.c @@ -107,10 +107,8 @@ static struct inode *orangefs_alloc_inode(struct super_block *sb) struct orangefs_inode_s *orangefs_inode; orangefs_inode = kmem_cache_alloc(orangefs_inode_cache, GFP_KERNEL); - if (orangefs_inode == NULL) { - gossip_err("Failed to allocate orangefs_inode\n"); + if (!orangefs_inode) return NULL; - } /* * We want to clear everything except for rw_semaphore and the |