]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
coda: remove sb test in coda_fid_to_inode()
authorFabian Frederick <fabf@skynet.be>
Tue, 16 Jul 2019 23:29:06 +0000 (16:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jul 2019 02:23:23 +0000 (19:23 -0700)
coda_fid_to_inode() is only called by coda_downcall() where sb is already
being tested.

Link: http://lkml.kernel.org/r/d2163b3136348faf83ba47dc2d65a5d0a9a135dd.1558117389.git.jaharkes@cs.cmu.edu
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Mikko Rapeli <mikko.rapeli@iki.fi>
Cc: Sam Protsenko <semen.protsenko@linaro.org>
Cc: Yann Droneaud <ydroneaud@opteya.com>
Cc: Zhouyang Jia <jiazhouyang09@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/coda/cnode.c

index 2e5badf67f98726f71adab0db2710417f8426a38..e2dcf2addf3f727377ead91bcc6900c07ccaad62 100644 (file)
@@ -137,11 +137,6 @@ struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb)
        struct inode *inode;
        unsigned long hash = coda_f2i(fid);
 
-       if ( !sb ) {
-               pr_warn("%s: no sb!\n", __func__);
-               return NULL;
-       }
-
        inode = ilookup5(sb, hash, coda_test_inode, fid);
        if ( !inode )
                return NULL;