Skip to content

Commit

Permalink
staging: Fixes some checkpatch warnings in asus_oled/asus_oled.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cruz Julian Bishop authored and Greg Kroah-Hartman committed Jul 9, 2012
1 parent b7c5a77 commit 485b34c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/asus_oled/asus_oled.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 485b34c

Please sign in to comment.