nvmet: avoid dereferencing nvmet_req
authorMax Gurtovoy <maxg@mellanox.com>
Mon, 23 Jan 2017 09:01:12 +0000 (11:01 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 20:34:00 +0000 (13:34 -0700)
commit2dbf5816bb52ee3198882c1d198440e4bac62253
treef694821390b376f3adc0b0ef1e37594f5b616f78
parent8432bdb2905713cb3ef5cbe4a72630fa575565ad
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 <maxg@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/fabrics-cmd.c