在 2025/07/16 0:52, Bart Van Assche 写道:
sector_t is a synonym for u64 and all architectures define u64 as unsigned
long long. Hence, it is not necessary to cast type sector_t to unsigned
long long. Remove a superfluous cast to improve compile-time type checking.
Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
---
block/bfq-iosched.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by: Yu Kuai <yukuai3@xxxxxxxxxx>
Thanks
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index 0cb1e9873aab..74f03bf27d82 100644
--- a/block/bfq-iosched.c
+++ b/block/bfq-iosched.c
@@ -769,8 +769,7 @@ bfq_rq_pos_tree_lookup(struct bfq_data *bfqd, struct rb_root *root,
if (rb_link)
*rb_link = p;
- bfq_log(bfqd, "rq_pos_tree_lookup %llu: returning %d",
- (unsigned long long)sector,
+ bfq_log(bfqd, "rq_pos_tree_lookup %llu: returning %d", sector,
bfqq ? bfqq->pid : 0);
return bfqq;
.