Skip to content

Commit

Permalink
ub: remove sg_stat
Browse files Browse the repository at this point in the history
Remove forgotten code related to sg_stat[].

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Oct 17, 2008
1 parent 6a2839b commit 7dbcbe8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/block/ub.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,6 @@ struct ub_dev {

struct work_struct reset_work;
wait_queue_head_t reset_wait;

int sg_stat[6];
};

/*
Expand Down Expand Up @@ -685,7 +683,6 @@ static int ub_request_fn_1(struct ub_lun *lun, struct request *rq)
goto drop;
}
urq->nsg = n_elem;
sc->sg_stat[n_elem < 5 ? n_elem : 5]++;

if (blk_pc_request(rq)) {
ub_cmd_build_packet(sc, lun, cmd, urq);
Expand Down

0 comments on commit 7dbcbe8

Please sign in to comment.