Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b519c15d authored by Frans Pop's avatar Frans Pop Committed by Jiri Kosina
Browse files

trivial: cleanup hpfall example code (checkpatch)



This patch makes hpfall.c conform to kernel coding style.

I have not fixed the C99 // comments on two lines as they
help indicate that those are not actually comments but
incomplete code.

Before:
 total: 10 errors, 6 warnings, 101 lines checked
After:
 total: 2 errors, 0 warnings, 99 lines checked

Signed-off-by: default avatarFrans Pop <elendil@planet.nl>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent cf83011d
Loading
Loading
Loading
Loading
+31 −33
Original line number Diff line number Diff line
@@ -57,7 +57,6 @@ void ignore_me(void)
{
	protect(0);
	set_led(0);

}

int main(int argc, char *argv[])
@@ -89,12 +88,11 @@ int main(int argc, char* argv[])

		protect(21);
		set_led(1);
	       if (1 || on_ac() || lid_open()) {
		if (1 || on_ac() || lid_open())
			alarm(2);
	       } else {
		else
			alarm(20);
	}
       }

	close(fd);
	return EXIT_SUCCESS;