]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-hwmon: consistently ignore errors from nvme_hwmon_init
authorChristoph Hellwig <hch@lst.de>
Tue, 18 Oct 2022 14:55:55 +0000 (16:55 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 19 Oct 2022 10:42:58 +0000 (12:42 +0200)
commitc5e38a9c097b44ee3d80583d59274cc3991baf29
treea11e6ba1ce89a371e46394c033a5a35349e602f9
parent05efe22d095740fdfa9d6024e69884732086d78b
nvme-hwmon: consistently ignore errors from nvme_hwmon_init

An NVMe controller works perfectly fine even when the hwmon
initialization fails.  Stop returning errors that do not come from a
controller reset from nvme_hwmon_init to handle this case consistently.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
drivers/nvme/host/core.c
drivers/nvme/host/hwmon.c