]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nvme: explicitly set non-error for directives
authorKeith Busch <kbusch@kernel.org>
Tue, 15 Feb 2022 15:03:08 +0000 (07:03 -0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 28 Feb 2022 11:45:06 +0000 (13:45 +0200)
commit1c3adf0de1db86cf354dcb1a2dd1184e5e63a50a
treec2ba3ac3621f270e6f8032ae93806e14d00c367f
parent86c2457a8e8112f16af8fd10a3e1dd7a302c3c3e
nvme: explicitly set non-error for directives

Stream directives is an optional feature. It is not an error if a
controller doesn't support as many as the kernel can optionally use.
Explicitly set the non-error return value on this condition with a
comment explaining why.

Note, the return value was already 0 in this condition, so the setting
is redundant. This patch should just silence bots that falsely believe
the condition contains an error omission.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c