drm/nouveau/hwmon: fix compilation without CONFIG_HWMON
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 27 Nov 2013 17:38:42 +0000 (12:38 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 28 Nov 2013 04:38:09 +0000 (14:38 +1000)
Reported-by: Jim Davis <jim.epost@gmail.com>
Tested-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_hwmon.c

index 38a4db5..4aff04f 100644 (file)
@@ -630,7 +630,6 @@ error:
        hwmon->hwmon = NULL;
        return ret;
 #else
-       hwmon->hwmon = NULL;
        return 0;
 #endif
 }