mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
nvmet: avoid dereferencing nvmet_req
No need to dereference req twice to get the cmd when we already have it stored in a local variable. Signed-off-by: Max Gurtovoy <[email protected]> Reviewed-by: Parav Pandit <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Sagi Grimberg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
8432bdb290
commit
2dbf5816bb
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ int nvmet_parse_connect_cmd(struct nvmet_req *req)
|
|||
|
||||
req->ns = NULL;
|
||||
|
||||
if (req->cmd->common.opcode != nvme_fabrics_command) {
|
||||
if (cmd->common.opcode != nvme_fabrics_command) {
|
||||
pr_err("invalid command 0x%x on unconnected queue.\n",
|
||||
cmd->fabrics.opcode);
|
||||
return NVME_SC_INVALID_OPCODE | NVME_SC_DNR;
|
||||
|
|
|
|||
Loading…
Reference in a new issue