Commit 73bd81d2 authored by Xinghuo Chen's avatar Xinghuo Chen Committed by Greg Kroah-Hartman
Browse files

hwmon: fix a NULL vs IS_ERR_OR_NULL() check in xgene_hwmon_probe()



[ Upstream commit 10fce7eb ]

The devm_memremap() function returns error pointers on error,
it doesn't return NULL.

Fixes: c7cefce0 ("hwmon: (xgene) access mailbox as RAM")
Signed-off-by: default avatarXinghuo Chen <xinghuo.chen@foxmail.com>
Link: https://lore.kernel.org/r/tencent_9AD8E7683EC29CAC97496B44F3F865BA070A@qq.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 13f3f872
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment