diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-01-08 04:08:49 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-01-09 19:47:08 +0100 |
commit | b8a38ea64dc714a64f8fb76e311a4f15a3f67861 (patch) | |
tree | 8cf26b22c6592b7456aef2c8e39a4f0d7679522a /drivers/bus | |
parent | nvme: introduce NVME_QUIRK_IGNORE_DEV_SUBNQN (diff) | |
download | linux-b8a38ea64dc714a64f8fb76e311a4f15a3f67861.tar.xz linux-b8a38ea64dc714a64f8fb76e311a4f15a3f67861.zip |
nvme: don't initlialize ctrl->cntlid twice
ctrl->cntlid will already be initialized from id->cntlid for
non-NVME_F_FABRICS controllers few lines below. For NVME_F_FABRICS
controllers this field should already be initialized, otherwise the
check
if (ctrl->cntlid != le16_to_cpu(id->cntlid))
below will always be a no-op.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions