nvme: Fix uninitialized-variable warning
authorKeith Busch <kbusch@kernel.org>
Wed, 19 Feb 2020 15:59:36 +0000 (00:59 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 12:00:15 +0000 (13:00 +0100)
commit9b6be0d2f942c2d6a4a1f88106c53f88bd5b2a16
tree227519560c73529c71cd3553a890f20e323308a2
parentb290fb0b797176ef96b0dbfe80cb7e0b2aea347e
nvme: Fix uninitialized-variable warning

[ Upstream commit 15755854d53b4bbb0bb37a0fce66f0156cfc8a17 ]

gcc may detect a false positive on nvme using an unintialized variable
if setting features fails. Since this is not a fast path, explicitly
initialize this variable to suppress the warning.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c