Skip to content

Commit

Permalink
null_blk: fix type mismatch null_handle_cmd()
Browse files Browse the repository at this point in the history
In null_handle_cmd() when device is configured as zoned, variable op is
decalred as an int, where it is used to hold values of type
REQ_OP_XXX which is of type enum req_opf. Change the type from
int to enum req_opf.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Chaitanya Kulkarni authored and Jens Axboe committed Jun 29, 2019
1 parent dbc3117 commit 152c762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/null_blk_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ static blk_status_t null_handle_cmd(struct nullb_cmd *cmd)
if (!cmd->error && dev->zoned) {
sector_t sector;
unsigned int nr_sectors;
int op;
enum req_opf op;

if (dev->queue_mode == NULL_Q_BIO) {
op = bio_op(cmd->bio);
Expand Down

0 comments on commit 152c762

Please sign in to comment.