* [PATCH] samples: fixed blank line after declaration
@ 2017-04-09 23:46 Ron Mentink
0 siblings, 0 replies; only message in thread
From: Ron Mentink @ 2017-04-09 23:46 UTC (permalink / raw)
To: linux-kernel; +Cc: shuah, corbet, Ron Mentink
Following the code-style added a blank line to watchdog-simple.c in the
examples.
Signed-off-by: ronm <ronm@meesterprutser.nl>
---
samples/watchdog/watchdog-simple.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/samples/watchdog/watchdog-simple.c b/samples/watchdog/watchdog-simple.c
index ba45803..327b226 100644
--- a/samples/watchdog/watchdog-simple.c
+++ b/samples/watchdog/watchdog-simple.c
@@ -7,6 +7,7 @@ int main(void)
{
int fd = open("/dev/watchdog", O_WRONLY);
int ret = 0;
+
if (fd == -1) {
perror("watchdog");
exit(EXIT_FAILURE);
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-10 0:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-09 23:46 [PATCH] samples: fixed blank line after declaration Ron Mentink
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).