Skip to content

Commit 452af7d

Browse files
YuKuai-huaweiaxboe
authored andcommitted
block, bfq: don't return bfqg from __bfq_bic_change_cgroup()
The return value is not used, hence remove it. Signed-off-by: Yu Kuai <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 64dc8c7 commit 452af7d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

block/bfq-cgroup.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -724,9 +724,9 @@ void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq,
724724
* sure that the reference to cgroup is valid across the call (see
725725
* comments in bfq_bic_update_cgroup on this issue)
726726
*/
727-
static void *__bfq_bic_change_cgroup(struct bfq_data *bfqd,
728-
struct bfq_io_cq *bic,
729-
struct bfq_group *bfqg)
727+
static void __bfq_bic_change_cgroup(struct bfq_data *bfqd,
728+
struct bfq_io_cq *bic,
729+
struct bfq_group *bfqg)
730730
{
731731
struct bfq_queue *async_bfqq = bic_to_bfqq(bic, 0);
732732
struct bfq_queue *sync_bfqq = bic_to_bfqq(bic, 1);
@@ -776,8 +776,6 @@ static void *__bfq_bic_change_cgroup(struct bfq_data *bfqd,
776776
}
777777
}
778778
}
779-
780-
return bfqg;
781779
}
782780

783781
void bfq_bic_update_cgroup(struct bfq_io_cq *bic, struct bio *bio)

0 commit comments

Comments
 (0)