X-Git-Url: https://git.stricted.de/?a=blobdiff_plain;f=fs%2Forangefs%2Fsuper.c;h=47f3fb9cbec405855289679272405a8302575919;hb=4c707c04f622a7a8570a8db6389e5a2310b92195;hp=5a1bed6c8c6ae5b19eea666343347422b3f0dbbb;hpb=ddc239a4ac5bbd040e6f2f0ce3b876cd08281706;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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