diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-04-04 12:55:44 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-04-08 08:09:12 -0500 |
commit | ecb697c16c1718ae97bb73ce41a5d5ac2aed29ec (patch) | |
tree | a4a54638bedf89e29fb8487b3493188d462b3fad /fs/xfs/quota/xfs_qm.c | |
parent | da8a1a4a4dfc1ead12c343b992fc8300a22d33d0 (diff) | |
download | op-kernel-dev-ecb697c16c1718ae97bb73ce41a5d5ac2aed29ec.zip op-kernel-dev-ecb697c16c1718ae97bb73ce41a5d5ac2aed29ec.tar.gz |
xfs: fix variable set but not used warnings
GCC 4.6 now warnings about variables set but not used. Fix the trivially
fixable warnings of this sort.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/quota/xfs_qm.c')
-rw-r--r-- | fs/xfs/quota/xfs_qm.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c index 254ee06..69228aa 100644 --- a/fs/xfs/quota/xfs_qm.c +++ b/fs/xfs/quota/xfs_qm.c @@ -461,12 +461,10 @@ xfs_qm_dqflush_all( struct xfs_quotainfo *q = mp->m_quotainfo; int recl; struct xfs_dquot *dqp; - int niters; int error; if (!q) return 0; - niters = 0; again: mutex_lock(&q->qi_dqlist_lock); list_for_each_entry(dqp, &q->qi_dqlist, q_mplist) { @@ -1314,14 +1312,9 @@ xfs_qm_dqiter_bufs( { xfs_buf_t *bp; int error; - int notcommitted; - int incr; int type; ASSERT(blkcnt > 0); - notcommitted = 0; - incr = (blkcnt > XFS_QM_MAX_DQCLUSTER_LOGSZ) ? - XFS_QM_MAX_DQCLUSTER_LOGSZ : blkcnt; type = flags & XFS_QMOPT_UQUOTA ? XFS_DQ_USER : (flags & XFS_QMOPT_PQUOTA ? XFS_DQ_PROJ : XFS_DQ_GROUP); error = 0; |