summaryrefslogtreecommitdiff
path: root/blktrace.c
diff options
context:
space:
mode:
authorTao Ma <tm@tao.ma>2011-02-09 10:22:39 +0100
committerJens Axboe <jens.axboe@oracle.com>2011-02-09 10:22:39 +0100
commit70598a36a98919980e8bb1becfc9d8302393a061 (patch)
tree3407d8ce2f3113b3f87716bc9b2df02946cd4ea7 /blktrace.c
parentae7c049dc73095c83e4ba243a45ea41bb71a7592 (diff)
downloadblktrace-70598a36a98919980e8bb1becfc9d8302393a061.tar.gz
blktrace-70598a36a98919980e8bb1becfc9d8302393a061.tar.bz2
blktrace: remove unused idx from devpath.
idx isn't used, so remove it. Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Tao Ma <boyu.mt@taobao.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'blktrace.c')
-rw-r--r--blktrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/blktrace.c b/blktrace.c
index a2bffa2..18c5157 100644
--- a/blktrace.c
+++ b/blktrace.c
@@ -93,7 +93,7 @@ struct devpath {
char *path; /* path to device special file */
char *buts_name; /* name returned from bt kernel code */
struct pdc_stats *stats;
- int fd, idx, ncpus;
+ int fd, ncpus;
unsigned long long drops;
/*
@@ -1248,7 +1248,7 @@ static int add_devpath(char *path)
memset(dpp, 0, sizeof(*dpp));
dpp->path = strdup(path);
dpp->fd = fd;
- dpp->idx = ndevs++;
+ ndevs++;
list_add_tail(&dpp->head, &devpaths);
return 0;