lkml.org 
[lkml]   [2017]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] samples: fixed blank line after declaration
Date
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
\
 
 \ /
  Last update: 2017-04-10 02:03    [W:0.036 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site