Skip to content

Commit

Permalink
staging: pi433: pi433_if.c fix codestyle on two long lines
Browse files Browse the repository at this point in the history
This patch fixes the following checkpatch.pl warning:

WARNING: line over 80 characters
#1233: FILE: pi433_if.c:1233:
+               unregister_chrdev(MAJOR(pi433_dev), pi433_spi_driver.driver.name);

WARNING: line over 80 characters
#1240: FILE: pi433_if.c:1240:
+               unregister_chrdev(MAJOR(pi433_dev), pi433_spi_driver.driver.name);

Signed-off-by: Oliver Graute <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
redbrain17 authored and gregkh committed Nov 28, 2017
1 parent 99ee477 commit 9be5755
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/staging/pi433/pi433_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -1233,14 +1233,16 @@ static int __init pi433_init(void)

pi433_class = class_create(THIS_MODULE, "pi433");
if (IS_ERR(pi433_class)) {
unregister_chrdev(MAJOR(pi433_dev), pi433_spi_driver.driver.name);
unregister_chrdev(MAJOR(pi433_dev),
pi433_spi_driver.driver.name);
return PTR_ERR(pi433_class);
}

status = spi_register_driver(&pi433_spi_driver);
if (status < 0) {
class_destroy(pi433_class);
unregister_chrdev(MAJOR(pi433_dev), pi433_spi_driver.driver.name);
unregister_chrdev(MAJOR(pi433_dev),
pi433_spi_driver.driver.name);
}

return status;
Expand Down

0 comments on commit 9be5755

Please sign in to comment.