Browse Source

bsg: silence a bogus gcc warning

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Jens Axboe 18 years ago
parent
commit
2ef7086a20
1 changed files with 1 additions and 1 deletions
  1. 1 1
      block/bsg.c

+ 1 - 1
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;