]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
leds-heartbeat-stop-on-shutdown-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 25 Apr 2012 01:04:33 +0000 (11:04 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:34 +0000 (15:17 +1000)
ERROR: space prohibited after that '!' (ctx:WxW)
#45: FILE: drivers/leds/ledtrig-heartbeat.c:121:
+ if( ! rc )
      ^

ERROR: space prohibited after that open parenthesis '('
#45: FILE: drivers/leds/ledtrig-heartbeat.c:121:
+ if( ! rc )

ERROR: space prohibited before that close parenthesis ')'
#45: FILE: drivers/leds/ledtrig-heartbeat.c:121:
+ if( ! rc )

ERROR: space required before the open parenthesis '('
#45: FILE: drivers/leds/ledtrig-heartbeat.c:121:
+ if( ! rc )

total: 4 errors, 0 warnings, 36 lines checked

./patches/leds-heartbeat-stop-on-shutdown.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Alexander Holler <holler@ahsoftware.de>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Shuah Khan <shuahkhan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/leds/ledtrig-heartbeat.c

index 8ec5fecf577f307e0a15f01abc321fafceb8c2f8..233a372158a4bf44f7c7e07f6fe80c3dec4299b3 100644 (file)
@@ -118,7 +118,8 @@ static struct notifier_block heartbeat_reboot_nb = {
 static int __init heartbeat_trig_init(void)
 {
        int rc = led_trigger_register(&heartbeat_led_trigger);
-       if( ! rc )
+
+       if (!rc)
                register_reboot_notifier(&heartbeat_reboot_nb);
        return rc;
 }