[PATCH 230/641] Staging: hv: comment out blkdev variable in blkvsc_ioctl

Greg Kroah-Hartman gregkh at suse.de
Tue Sep 15 19:07:41 UTC 2009


From: Bill Pemberton <wfp5p at virginia.edu>

This variable generated an unused variable warning due to other code
in the fuction being commented out.  This comments out the variable
defination so that the code compiles without warnings.

Signed-off-by: Bill Pemberton <wfp5p at virginia.edu>
Cc: Hank Janssen <hjanssen at microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
 drivers/staging/hv/blkvsc_drv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c
index dff950b..988de64 100644
--- a/drivers/staging/hv/blkvsc_drv.c
+++ b/drivers/staging/hv/blkvsc_drv.c
@@ -1461,7 +1461,7 @@ int blkvsc_getgeo(struct block_device *bd, struct hd_geometry *hg)
 static int blkvsc_ioctl(struct block_device *bd, fmode_t mode,
 			unsigned cmd, unsigned long argument)
 {
-	struct block_device_context *blkdev = bd->bd_disk->private_data;
+/*	struct block_device_context *blkdev = bd->bd_disk->private_data; */
 	int ret=0;
 
 	switch (cmd)
-- 
1.6.4.2




More information about the devel mailing list