[PATCH] xfs: Remove unused variable ‘bdi’

namei.unix at gmail.com namei.unix at gmail.com
Thu Mar 31 23:27:30 CDT 2011


From: Liu Yuan <tailai.ly at taobao.com>

When building kernel, I met a warning:
...
fs/xfs/linux-2.6/xfs_buf.c:660: warning: unused variable ‘bdi’
...

So just remove it.

Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 fs/xfs/linux-2.6/xfs_buf.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index 596bb2c..d917146 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -657,8 +657,6 @@ xfs_buf_readahead(
 	xfs_off_t		ioff,
 	size_t			isize)
 {
-	struct backing_dev_info *bdi;
-
 	if (bdi_read_congested(target->bt_bdi))
 		return;
 
-- 
1.7.1




More information about the xfs mailing list