Skip to contentSkip to conversation

fs/freevxfs/vxfs_lookup: Fix compile warning

PATCH New Javier Martinez Canillas 1 participant 1 message Oct 31, 2009 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/freevxfs/vxfs_lookup: Fix compile warning

On linux-next 20091030 I got this compile warning:

fs/freevxfs/vxfs_lookup.c: In function ‘vxfs_lookup’:
fs/freevxfs/vxfs_lookup.c:177: warning: ‘pp’ may be used uninitialized in this function fs/freevxfs/vxfs_lookup.c:177: note: ‘pp’ was declared here

This patch solves the issue.

---
 fs/freevxfs/vxfs_lookup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/freevxfs/vxfs_lookup.c +1 -1
index aee049c..151b5e9 100644
@@ -174,7 +174,7 @@ static ino_t
 vxfs_inode_by_name(struct inode *dip, struct dentry *dp)
 {
 	struct vxfs_direct		*de;
-	struct page			*pp;
+	struct page			*pp = NULL;
 	ino_t				ino = 0;
 
 	de = vxfs_find_entry(dip, dp, &pp);
Signature · 1 line
1.6.0.4