提交 87ad9001 编写于 作者: J Jeff Garzik 提交者: Jens Axboe

drivers/block/cpqarray,cciss: kill unused var

The recent bio work and subsequent fixups created unused variables.
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 7344be05
......@@ -1191,7 +1191,6 @@ static inline void complete_buffers(struct bio *bio, int status)
{
while (bio) {
struct bio *xbh = bio->bi_next;
int nr_sectors = bio_sectors(bio);
bio->bi_next = NULL;
bio_endio(bio, status ? 0 : -EIO);
......
......@@ -981,9 +981,8 @@ static void start_io(ctlr_info_t *h)
static inline void complete_buffers(struct bio *bio, int ok)
{
struct bio *xbh;
while(bio) {
int nr_sectors = bio_sectors(bio);
while (bio) {
xbh = bio->bi_next;
bio->bi_next = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册