[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1539937173-26260-7-git-send-email-fabf@skynet.be>
Date: Fri, 19 Oct 2018 10:19:32 +0200
From: Fabian Frederick <fabf@...net.be>
To: akpm@...ux-foundation.org
Cc: jaharkes@...cmu.edu, coda@...cmu.edu,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
fabf@...net.be
Subject: [PATCH 6/7 linux-next] 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.
Signed-off-by: Fabian Frederick <fabf@...net.be>
---
fs/coda/cnode.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/fs/coda/cnode.c b/fs/coda/cnode.c
index 845b5a6..c42d340 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;
--
2.4.11
Powered by blists - more mailing lists