Skip to content

Commit 3443bab

Browse files
Ming Leiaxboe
authored andcommitted
ublk: pass const pointer to ublk_queue_is_zoned()
Pass const pointer to ublk_queue_is_zoned() because it is readonly. Reviewed-by: Caleb Sander Mateos <csander@purestorage.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 0a9beaf commit 3443bab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/block/ublk_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static inline bool ublk_dev_is_zoned(const struct ublk_device *ub)
265265
return ub->dev_info.flags & UBLK_F_ZONED;
266266
}
267267

268-
static inline bool ublk_queue_is_zoned(struct ublk_queue *ubq)
268+
static inline bool ublk_queue_is_zoned(const struct ublk_queue *ubq)
269269
{
270270
return ubq->flags & UBLK_F_ZONED;
271271
}

0 commit comments

Comments
 (0)