Skip to content

Commit

Permalink
drivers/block/cpqarray,cciss: kill unused var
Browse files Browse the repository at this point in the history
The recent bio work and subsequent fixups created unused variables.

Signed-off-by: Jeff Garzik <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jeff Garzik authored and Jens Axboe committed Oct 16, 2007
1 parent 7344be0 commit 87ad900
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions drivers/block/cpqarray.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 87ad900

Please sign in to comment.