From: Fabian Frederick Date: Tue, 16 Jul 2019 23:29:06 +0000 (-0700) Subject: coda: remove sb test in coda_fid_to_inode() X-Git-Tag: v5.4-rc1~541^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f6118ce95d2673f8c936dd47d9bbeb60f4d16ad;p=platform%2Fkernel%2Flinux-rpi.git coda: remove sb test in coda_fid_to_inode() 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 Signed-off-by: Jan Harkes Cc: Arnd Bergmann Cc: Colin Ian King Cc: Dan Carpenter Cc: David Howells Cc: Mikko Rapeli Cc: Sam Protsenko Cc: Yann Droneaud Cc: Zhouyang Jia Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/coda/cnode.c b/fs/coda/cnode.c index 2e5badf..e2dcf2ad 100644 --- a/fs/coda/cnode.c +++ b/fs/coda/cnode.c @@ -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;