summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/bsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bsg.c b/block/bsg.c
index 6f05a397dc3..9d77a0c7245 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;