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 38a4db5bfe21f22b8713bff3ad20466c5f631411..4aff04fa483c5e82acf1c66b1e63833bc23391cf 100644 (file)
@@ -630,7 +630,6 @@ error:
        hwmon->hwmon = NULL;
        return ret;
 #else
-       hwmon->hwmon = NULL;
        return 0;
 #endif
 }