platform: x86: Deletion of checks before backlight_device_unregister()
[sfrench/cifs-2.6.git] / drivers / platform / x86 / eeepc-laptop.c
index e4094b40a2829e44c00187a7ac839c9a6a4b9065..e5d50aa1e40fab6da38e8c38a0335f4786f39c8a 100644 (file)
@@ -1174,8 +1174,7 @@ static int eeepc_backlight_init(struct eeepc_laptop *eeepc)
 
 static void eeepc_backlight_exit(struct eeepc_laptop *eeepc)
 {
-       if (eeepc->backlight_device)
-               backlight_device_unregister(eeepc->backlight_device);
+       backlight_device_unregister(eeepc->backlight_device);
        eeepc->backlight_device = NULL;
 }