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>
This commit is contained in:
parent
7344be053a
commit
87ad900164
|
@ -1191,7 +1191,6 @@ static inline void complete_buffers(struct bio *bio, int status)
|
||||||
{
|
{
|
||||||
while (bio) {
|
while (bio) {
|
||||||
struct bio *xbh = bio->bi_next;
|
struct bio *xbh = bio->bi_next;
|
||||||
int nr_sectors = bio_sectors(bio);
|
|
||||||
|
|
||||||
bio->bi_next = NULL;
|
bio->bi_next = NULL;
|
||||||
bio_endio(bio, status ? 0 : -EIO);
|
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)
|
static inline void complete_buffers(struct bio *bio, int ok)
|
||||||
{
|
{
|
||||||
struct bio *xbh;
|
struct bio *xbh;
|
||||||
while(bio) {
|
|
||||||
int nr_sectors = bio_sectors(bio);
|
|
||||||
|
|
||||||
|
while (bio) {
|
||||||
xbh = bio->bi_next;
|
xbh = bio->bi_next;
|
||||||
bio->bi_next = NULL;
|
bio->bi_next = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue