diff options
Diffstat (limited to 'drivers/block/aoe')
-rw-r--r-- | drivers/block/aoe/aoecmd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index 5efed089a702..fc803ecbbce4 100644 --- a/drivers/block/aoe/aoecmd.c +++ b/drivers/block/aoe/aoecmd.c | |||
@@ -920,16 +920,14 @@ bio_pagedec(struct bio *bio) | |||
920 | static void | 920 | static void |
921 | bufinit(struct buf *buf, struct request *rq, struct bio *bio) | 921 | bufinit(struct buf *buf, struct request *rq, struct bio *bio) |
922 | { | 922 | { |
923 | struct bio_vec *bv; | ||
924 | |||
925 | memset(buf, 0, sizeof(*buf)); | 923 | memset(buf, 0, sizeof(*buf)); |
926 | buf->rq = rq; | 924 | buf->rq = rq; |
927 | buf->bio = bio; | 925 | buf->bio = bio; |
928 | buf->resid = bio->bi_size; | 926 | buf->resid = bio->bi_size; |
929 | buf->sector = bio->bi_sector; | 927 | buf->sector = bio->bi_sector; |
930 | bio_pageinc(bio); | 928 | bio_pageinc(bio); |
931 | buf->bv = bv = bio_iovec(bio); | 929 | buf->bv = bio_iovec(bio); |
932 | buf->bv_resid = bv->bv_len; | 930 | buf->bv_resid = buf->bv->bv_len; |
933 | WARN_ON(buf->bv_resid == 0); | 931 | WARN_ON(buf->bv_resid == 0); |
934 | } | 932 | } |
935 | 933 | ||