]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/orangefs/super.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[linux.git] / fs / orangefs / super.c
index 5a1bed6c8c6ae5b19eea666343347422b3f0dbbb..47ebd9bfd1a1be6c638261c4167d530cd5cb3b2a 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * (C) 2001 Clemson University and The University of Chicago
  *
@@ -107,10 +108,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