mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
nvmet: remove else at the end of the function
The function nvmet_parse_io_cmd() returns value from nvmet_file_parse_io_cmd() or nvmet_bdev_parse_io_cmd() based on which backend is set for the request. Remove the else and just return the value from nvmet_bdev_parse_io_cmd(). Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
20c2c3bb83
commit
295a39f5a5
1 changed files with 2 additions and 2 deletions
|
@ -891,8 +891,8 @@ static u16 nvmet_parse_io_cmd(struct nvmet_req *req)
|
||||||
|
|
||||||
if (req->ns->file)
|
if (req->ns->file)
|
||||||
return nvmet_file_parse_io_cmd(req);
|
return nvmet_file_parse_io_cmd(req);
|
||||||
else
|
|
||||||
return nvmet_bdev_parse_io_cmd(req);
|
return nvmet_bdev_parse_io_cmd(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool nvmet_req_init(struct nvmet_req *req, struct nvmet_cq *cq,
|
bool nvmet_req_init(struct nvmet_req *req, struct nvmet_cq *cq,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue