mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs/xfs/xfs_bmap.c: initialize variable, remove warning
@ 2006-05-01 21:17 Petri T. Koistinen
  2006-05-02 20:54 ` Luca
  0 siblings, 1 reply; 2+ messages in thread
From: Petri T. Koistinen @ 2006-05-01 21:17 UTC (permalink / raw)
  To: xfs-masters, nathans; +Cc: trivial, linux-kernel

From: Petri T. Koistinen <petri.koistinen@iki.fi>

Remove warning by initializing uninitialized variable.

Warning:
  CC      fs/xfs/xfs_bmap.o
fs/xfs/xfs_bmap.c: In function 'xfs_bmapi':
fs/xfs/xfs_bmap.c:2498: warning: 'rtx' is used uninitialized in this function

Signed-off-by: Petri T. Koistinen <petri.koistinen@iki.fi>
---
 fs/xfs/xfs_bmap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
index 26939d3..35bad7b 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -2453,7 +2453,7 @@ xfs_bmap_rtalloc(
 	xfs_extlen_t	prod = 0;	/* product factor for allocators */
 	xfs_extlen_t	ralen = 0;	/* realtime allocation length */
 	xfs_extlen_t	align;		/* minimum allocation alignment */
-	xfs_rtblock_t	rtx;		/* realtime extent number */
+	xfs_rtblock_t	rtx = 0;	/* realtime extent number */
 	xfs_rtblock_t	rtb;

 	mp = ap->ip->i_mount;



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-02 20:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-01 21:17 [PATCH] fs/xfs/xfs_bmap.c: initialize variable, remove warning Petri T. Koistinen
2006-05-02 20:54 ` Luca

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

all inboxes | Powered by JetHome®