From 2ef7086a207d3d899ae88602a135fe1c24e1811f Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 20 Dec 2006 11:26:11 +0100 Subject: [PATCH] bsg: silence a bogus gcc warning Signed-off-by: Jens Axboe --- block/bsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/bsg.c b/block/bsg.c index 6f05a397dc3a..9d77a0c72457 100644 --- a/block/bsg.c +++ b/block/bsg.c @@ -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; -- GitLab