File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ static int keyboard_led_probe(struct platform_device *pdev)
229
229
{
230
230
const struct keyboard_led_drvdata * drvdata ;
231
231
struct keyboard_led * keyboard_led ;
232
- int error ;
232
+ int err ;
233
233
234
234
if (keyboard_led_is_mfd_device (pdev ))
235
235
drvdata = & keyboard_led_drvdata_ec_pwm_mfd ;
@@ -244,9 +244,9 @@ static int keyboard_led_probe(struct platform_device *pdev)
244
244
platform_set_drvdata (pdev , keyboard_led );
245
245
246
246
if (drvdata -> init ) {
247
- error = drvdata -> init (pdev );
248
- if (error )
249
- return error ;
247
+ err = drvdata -> init (pdev );
248
+ if (err )
249
+ return err ;
250
250
}
251
251
252
252
keyboard_led -> cdev .name = "chromeos::kbd_backlight" ;
@@ -256,13 +256,10 @@ static int keyboard_led_probe(struct platform_device *pdev)
256
256
keyboard_led -> cdev .brightness_set_blocking = drvdata -> brightness_set_blocking ;
257
257
keyboard_led -> cdev .brightness_get = drvdata -> brightness_get ;
258
258
259
- error = devm_led_classdev_register (& pdev -> dev , & keyboard_led -> cdev );
260
- if (error == - EEXIST ) /* Already bound via other mechanism */
259
+ err = devm_led_classdev_register (& pdev -> dev , & keyboard_led -> cdev );
260
+ if (err == - EEXIST ) /* Already bound via other mechanism */
261
261
return - ENODEV ;
262
- if (error )
263
- return error ;
264
-
265
- return 0 ;
262
+ return err ;
266
263
}
267
264
268
265
#ifdef CONFIG_ACPI
You can’t perform that action at this time.
0 commit comments