Skip to content

Commit

Permalink
coda: remove sb test in coda_fid_to_inode()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jan Harkes <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Colin Ian King <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: David Howells <[email protected]>
Cc: Mikko Rapeli <[email protected]>
Cc: Sam Protsenko <[email protected]>
Cc: Yann Droneaud <[email protected]>
Cc: Zhouyang Jia <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Jul 17, 2019
1 parent 6975259 commit 7f6118c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/coda/cnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f6118c

Please sign in to comment.