Skip to content

Commit

Permalink
[XFS] Rework code snippets slightly to remove remaining recent-gcc
Browse files Browse the repository at this point in the history
warnings.

SGI-PV: 904196
SGI-Modid: xfs-linux-melb:xfs-kern:26364a

Signed-off-by: Nathan Scott <nathans@sgi.com>
  • Loading branch information
natoscott committed Jun 28, 2006
1 parent 73024cf commit 6fdf8cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fs/xfs/xfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1961,9 +1961,9 @@ xfs_iunlink_remove(
xfs_agino_t agino;
xfs_agino_t next_agino;
xfs_buf_t *last_ibp;
xfs_dinode_t *last_dip;
xfs_dinode_t *last_dip = NULL;
short bucket_index;
int offset, last_offset;
int offset, last_offset = 0;
int error;
int agi_ok;

Expand Down
2 changes: 2 additions & 0 deletions fs/xfs/xfs_log_recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,8 @@ xlog_find_zeroed(
xfs_daddr_t num_scan_bblks;
int error, log_bbnum = log->l_logBBsize;

*blk_no = 0;

/* check totally zeroed log */
bp = xlog_get_bp(log, 1);
if (!bp)
Expand Down
3 changes: 2 additions & 1 deletion fs/xfs/xfs_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ xfs_icsb_balance_counter(
xfs_sb_field_t field,
int flags)
{
uint64_t count, resid = 0;
uint64_t count, resid;
int weight = num_online_cpus();
int s;

Expand Down Expand Up @@ -2058,6 +2058,7 @@ xfs_icsb_balance_counter(
break;
default:
BUG();
count = resid = 0; /* quiet, gcc */
break;
}

Expand Down

0 comments on commit 6fdf8cc

Please sign in to comment.