summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel_oaktrail.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86/intel_oaktrail.c')
-rw-r--r--drivers/platform/x86/intel_oaktrail.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/intel_oaktrail.c b/drivers/platform/x86/intel_oaktrail.c
index 0afaaef5711f..a4a4258f6134 100644
--- a/drivers/platform/x86/intel_oaktrail.c
+++ b/drivers/platform/x86/intel_oaktrail.c
@@ -271,8 +271,7 @@ static int oaktrail_backlight_init(void)
static void oaktrail_backlight_exit(void)
{
- if (oaktrail_bl_device)
- backlight_device_unregister(oaktrail_bl_device);
+ backlight_device_unregister(oaktrail_bl_device);
}
static int oaktrail_probe(struct platform_device *pdev)
OpenPOWER on IntegriCloud