[-mm patch] drivers/md/dm-hw-handler.c: fix compile warnings

Adrian Bunk
2005-02-24T11:14:11Z

On Wed, Feb 23, 2005 at 01:42:33AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.11-rc3-mm1:
>...
> +device-mapper-multipath-hardware-handler.patch
>...
> More DM updates
>...

This causes the following compile warnings:

<-- snip -->

...
CC drivers/md/dm-hw-handler.o
drivers/md/dm-hw-handler.c: In function `dm_scsi_err_handler':
drivers/md/dm-hw-handler.c:154: warning: unused variable `sense_key'
drivers/md/dm-hw-handler.c:154: warning: unused variable `asc'
drivers/md/dm-hw-handler.c:154: warning: unused variable `ascq'
...

<-- snip -->

Trivial fix:

<-- snip -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.11-rc4-mm1-full/drivers/md/dm-hw-handler.c.old 2005-02-24 01:59:45.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/drivers/md/dm-hw-handler.c 2005-02-24 02:00:05.000000000 +0100
@@ -151,9 +151,9 @@

unsigned dm_scsi_err_handler(struct hw_handler *hwh, struct bio *bio)
{
+#if 0
int sense_key, asc, ascq;

-#if 0
if (bio->bi_error & BIO_SENSE) {
/* FIXME: This is just an initial guess. */
/* key / asc / ascq */