staging: Fixes some checkpatch warnings in asus_oled/asus_oled.c
This fixes the following warnings: 1: Changes a printk(KERN_ERR) call to a pr_err call in line 785 2: Changes a printk(KERN_ERR) call to a pr_err call in line 791 3: Changes a printk(KERN_ERR) call to a pr_err call in line 798 4: Reduces line length below 80 at line 785 (Not intended) 5: Reduces line length below 80 at line 798 (Not intended) Signed-off-by: Cruz Julian Bishop <cruz@massive-dynamics.biz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b7c5a774b0
commit
485b34c2df
|
@ -782,20 +782,20 @@ static int __init asus_oled_init(void)
|
|||
oled_class = class_create(THIS_MODULE, ASUS_OLED_UNDERSCORE_NAME);
|
||||
|
||||
if (IS_ERR(oled_class)) {
|
||||
printk(KERN_ERR "Error creating " ASUS_OLED_UNDERSCORE_NAME " class\n");
|
||||
pr_err("Error creating " ASUS_OLED_UNDERSCORE_NAME " class\n");
|
||||
return PTR_ERR(oled_class);
|
||||
}
|
||||
|
||||
retval = class_create_file(oled_class, &class_attr_version.attr);
|
||||
if (retval) {
|
||||
printk(KERN_ERR "Error creating class version file\n");
|
||||
pr_err("Error creating class version file\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
retval = usb_register(&oled_driver);
|
||||
|
||||
if (retval) {
|
||||
printk(KERN_ERR "usb_register failed. Error number %d\n", retval);
|
||||
pr_err("usb_register failed. Error number %d\n", retval);
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue