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)
commit6b8cf94005187952f794c0c4ed3920a1e8accfa3
treea11e6ba1ce89a371e46394c033a5a35349e602f9
parent6ff5ba97960821fb872ad981eb30374f5cee1fd9
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