Browse Source

xfs: fix non-debug build compiler warnings

Fix compiler warning on non-debug build

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Darrick J. Wong 7 years ago
parent
commit
75d4a13b1f
1 changed files with 1 additions and 4 deletions
  1. 1 4
      fs/xfs/xfs_dquot_item.c

+ 1 - 4
fs/xfs/xfs_dquot_item.c

@@ -150,10 +150,7 @@ xfs_dquot_item_error(
 	struct xfs_log_item	*lip,
 	struct xfs_log_item	*lip,
 	struct xfs_buf		*bp)
 	struct xfs_buf		*bp)
 {
 {
-	struct xfs_dquot	*dqp;
-
-	dqp = DQUOT_ITEM(lip)->qli_dquot;
-	ASSERT(!completion_done(&dqp->q_flush));
+	ASSERT(!completion_done(&DQUOT_ITEM(lip)->qli_dquot->q_flush));
 	xfs_set_li_failed(lip, bp);
 	xfs_set_li_failed(lip, bp);
 }
 }