diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-10-15 11:02:15 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-10-16 09:59:55 +0200 |
commit | 87ad90016483f7f112021c7c82d3d72e682324f6 (patch) | |
tree | c6ab50ceae0297813e4b2b867a3e0267c45d15cd /drivers/block | |
parent | 7344be053ab9a1910e77ba6472883a5c83dda569 (diff) | |
download | kernel_samsung_aries-87ad90016483f7f112021c7c82d3d72e682324f6.zip kernel_samsung_aries-87ad90016483f7f112021c7c82d3d72e682324f6.tar.gz kernel_samsung_aries-87ad90016483f7f112021c7c82d3d72e682324f6.tar.bz2 |
drivers/block/cpqarray,cciss: kill unused var
The recent bio work and subsequent fixups created unused variables.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/cciss.c | 1 | ||||
-rw-r--r-- | drivers/block/cpqarray.c | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 55c3237..a895228 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -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); diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index 3853c9a..568603d 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c @@ -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; |