public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/freevxfs/vxfs_lookup: Fix compile warning
@ 2009-10-31  5:25 Javier Martinez Canillas
  0 siblings, 0 replies; only message in thread
From: Javier Martinez Canillas @ 2009-10-31  5:25 UTC (permalink / raw)
  To: kernel-janitors

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.

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
---
 fs/freevxfs/vxfs_lookup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/freevxfs/vxfs_lookup.c b/fs/freevxfs/vxfs_lookup.c
index aee049c..151b5e9 100644
--- a/fs/freevxfs/vxfs_lookup.c
+++ b/fs/freevxfs/vxfs_lookup.c
@@ -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);
-- 
1.6.0.4

	



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

only message in thread, other threads:[~2009-10-31  5:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-31  5:25 [PATCH] fs/freevxfs/vxfs_lookup: Fix compile warning Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox