ocfs2: Fix compilation warning for fs/ocfs2/xattr.c
authorSubrata Modak <subrata@linux.vnet.ibm.com>
Mon, 13 Jul 2009 19:49:31 +0000 (01:19 +0530)
committerJoel Becker <joel.becker@oracle.com>
Mon, 20 Jul 2009 22:52:57 +0000 (15:52 -0700)
commit44d8e4e1e9b941065eb7578669fe51eb65c73e63
tree6e0be67a3b6be743db1dde36692ab051b7498849
parentcefcb800fa9536bb6f29485c53e6c82a65b0c022
ocfs2: Fix compilation warning for fs/ocfs2/xattr.c

gcc 4.4.1 generates the following build warning on i386:

CC [M]  fs/ocfs2/xattr.o
fs/ocfs2/xattr.c: In function ‘ocfs2_xattr_block_get’:
fs/ocfs2/xattr.c:1055: warning: ‘block_off’ may be used uninitialized in this function

The following fix is based on a similar approach by David Howells
few days back: http://lkml.org/lkml/2009/7/9/109,

Signed-off-by: Subrata Modak<subrata@linux.vnet.ibm.com>,
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/xattr.c