All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/ncpfs/dir.c unused variable sb
@ 2011-06-08  7:00 Connor Hansen
  0 siblings, 0 replies; only message in thread
From: Connor Hansen @ 2011-06-08  7:00 UTC (permalink / raw)
  To: petr; +Cc: npiggin, viro, linux-kernel, Connor Hansen

during randconfig testing,

fs/ncpfs/dir.c: in function ncp_hash_dentry:
fs/nspfs/dir.c:128:23: warning: unused variable sb

pass dentry->d_sb instead of first creating an
unnecessary pointer to it.

Signed-off-by: Connor Hansen <cmdkhh@gmail.com>
---
 fs/ncpfs/dir.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c
index 9c51f62..a8d42af 100644
--- a/fs/ncpfs/dir.c
+++ b/fs/ncpfs/dir.c
@@ -125,12 +125,11 @@ ncp_hash_dentry(const struct dentry *dentry, const struct inode *inode,
 		struct qstr *this)
 {
 	if (!ncp_case_sensitive(inode)) {
-		struct super_block *sb = dentry->d_sb;
 		struct nls_table *t;
 		unsigned long hash;
 		int i;
 
-		t = NCP_IO_TABLE(sb);
+		t = NCP_IO_TABLE(dentry->d_sb);
 		hash = init_name_hash();
 		for (i=0; i<this->len ; i++)
 			hash = partial_name_hash(ncp_tolower(t, this->name[i]),
-- 
1.7.4.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-08  7:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08  7:00 [PATCH] fs/ncpfs/dir.c unused variable sb Connor Hansen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.