OSDN Git Service

null_blk: fix type mismatch null_handle_cmd()
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Fri, 28 Jun 2019 23:29:04 +0000 (16:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Jun 2019 15:36:37 +0000 (09:36 -0600)
commit152c762e92609965b542c31a7627ad05893f70d9
tree66d67680ed8595edfc3b57bef7b386bed079beb6
parentdbc3117d4ca9e17819ac73501e914b8422686750
null_blk: fix type mismatch null_handle_cmd()

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>
drivers/block/null_blk_main.c