xfs: fix gcc 4.6 set but not read and unused statement warnings
[hch: dropped a few hunks that need structural changes instead] Signed-off-by: Andi Kleen <ak@linux.intel.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
0f1a932f5d
commit
73523a2ecf
7 changed files with 15 additions and 34 deletions
|
@ -1042,7 +1042,6 @@ xlog_alloc_log(xfs_mount_t *mp,
|
|||
xlog_in_core_t *iclog, *prev_iclog=NULL;
|
||||
xfs_buf_t *bp;
|
||||
int i;
|
||||
int iclogsize;
|
||||
int error = ENOMEM;
|
||||
uint log2_size = 0;
|
||||
|
||||
|
@ -1122,7 +1121,6 @@ xlog_alloc_log(xfs_mount_t *mp,
|
|||
* with different amounts of memory. See the definition of
|
||||
* xlog_in_core_t in xfs_log_priv.h for details.
|
||||
*/
|
||||
iclogsize = log->l_iclog_size;
|
||||
ASSERT(log->l_iclog_size >= 4096);
|
||||
for (i=0; i < log->l_iclog_bufs; i++) {
|
||||
*iclogp = kmem_zalloc(sizeof(xlog_in_core_t), KM_MAYFAIL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue