]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/block/cpqarray,cciss: kill unused var
authorJeff Garzik <jeff@garzik.org>
Mon, 15 Oct 2007 09:02:15 +0000 (11:02 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 16 Oct 2007 07:59:55 +0000 (09:59 +0200)
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>
drivers/block/cciss.c
drivers/block/cpqarray.c

index 55c3237fb1bc8792df398d4f18531a48f9da3cb1..a895228f3d7009bad9cc60e9ef6d0ac55e2ff776 100644 (file)
@@ -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);
index 3853c9a38d6a1dd4457ccb445b804546f07a609a..568603d3043e66d1743437095b5fb28c7008596b 100644 (file)
@@ -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;