bsg: silence a bogus gcc warning
Jens Axboe [Wed, 20 Dec 2006 10:26:11 +0000 (11:26 +0100)]
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

block/bsg.c

index 6f05a39..9d77a0c 100644 (file)
@@ -302,7 +302,7 @@ bsg_map_hdr(struct bsg_device *bd, struct sg_io_v4 *hdr)
 {
        request_queue_t *q = bd->queue;
        struct request *rq;
-       int ret, rw;
+       int ret, rw = 0; /* shut up gcc */
        unsigned int dxfer_len;
        void *dxferp = NULL;