提交 9780643c 编写于 作者: D Darrick J. Wong 提交者: Dave Chinner

xfs: fix error initialization

Eric Sandeen reported a gcc complaint about uninitialized error
variables, so fix that.
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
Reported-by: NEric Sandeen <sandeen@redhat.com>
Reviewed-by: NDave Chinner <dchinner@redhat.com>
Signed-off-by: NDave Chinner <david@fromorbit.com>
上级 93fed470
......@@ -1437,7 +1437,7 @@ xfs_reflink_dirty_extents(
xfs_off_t flen;
struct xfs_bmbt_irec map[2];
int nmaps;
int error;
int error = 0;
while (end - fbno > 0) {
nmaps = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册