]> git.ipfire.org Git - people/arne_f/kernel.git/commit
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>
Wed, 11 Mar 2020 13:14:55 +0000 (14:14 +0100)
commite82a65b2f4f37111b52021feafb51b5d84ed7023
tree9be8cb24709bff1e0b66a23ed6d8ab8937967758
parent9623c8ae73c42eab6849ad97b8dfd02bd8b9b1d7
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