]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: Fix uninitialized-variable warning
authorKeith Busch <kbusch@kernel.org>
Wed, 19 Feb 2020 15:59:36 +0000 (00:59 +0900)
committerKeith Busch <kbusch@kernel.org>
Wed, 19 Feb 2020 16:40:57 +0000 (01:40 +0900)
commit3b3ab0675502ffea112e738546c7aa582bced73d
tree95c8de5879a7882b922dd99b2b2bbcc035c64d4c
parent107a9e45cfaea6a7dfcd6189196e7a9b2eac9219
nvme: Fix uninitialized-variable warning

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>
drivers/nvme/host/core.c