Skip to content

Commit

Permalink
refactor: replace variable name r with err
Browse files Browse the repository at this point in the history
"int r" doesn't tell us nothing but it's return value. nor does "retval".

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
  • Loading branch information
akiradeveloper committed Sep 11, 2016
1 parent 7db353d commit cdcc90b
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 192 deletions.
4 changes: 2 additions & 2 deletions src/dm-writeboost-daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ static void process_deferred_barriers(struct wb_device *wb, struct flush_job *jo
struct bio *bio;

/* Make all the preceding data persistent. */
int res = blkdev_issue_flush(wb->cache_dev->bdev, GFP_NOIO, NULL);
int err = blkdev_issue_flush(wb->cache_dev->bdev, GFP_NOIO, NULL);

/* Ack the chained barrier requests. */
while ((bio = bio_list_pop(&job->barrier_ios)))
bio_endio_compat(bio, res);
bio_endio_compat(bio, err);
}
}

Expand Down
Loading

0 comments on commit cdcc90b

Please sign in to comment.