drm/nouveau/hwmon: fix compilation without CONFIG_HWMON
Changes
1 files changed · +0 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| drivers/gpu/drm/nouveau/nouveau_hwmon.c | modified | +0 | −1 | View file |
drivers/gpu/drm/nouveau/nouveau_hwmon.c
View filediff --git a/drivers/gpu/drm/nouveau/nouveau_hwmon.c b/drivers/gpu/drm/nouveau/nouveau_hwmon.c
index 38a4db5..4aff04f 100644
--- a/drivers/gpu/drm/nouveau/nouveau_hwmon.c
+++ b/drivers/gpu/drm/nouveau/nouveau_hwmon.c
@@ -630,7 +630,6 @@ error:
hwmon->hwmon = NULL;
return ret;
#else
- hwmon->hwmon = NULL;
return 0;
#endif
}