mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
To: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com
Cc: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Subject: [PATCH 1/2] rtc: make example code jump to done instead of return when ioctl not supported
Date: Fri,  8 Jun 2007 13:34:17 +0200	[thread overview]
Message-ID: <11813024582527-git-send-email-hcegtvedt@atmel.com> (raw)

Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
---
 Documentation/rtc.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/rtc.txt b/Documentation/rtc.txt
index 1ef6bb8..8cc67c7 100644
--- a/Documentation/rtc.txt
+++ b/Documentation/rtc.txt
@@ -388,7 +388,7 @@ test_PIE:
 		/* not all RTCs support periodic IRQs */
 		if (errno == ENOTTY) {
 			fprintf(stderr, "\nNo periodic IRQ support\n");
-			return 0;
+			goto done;
 		}
 		perror("RTC_IRQP_READ ioctl");
 		exit(errno);
-- 
1.4.4.2


             reply	other threads:[~2007-06-08 11:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-08 11:34 Hans-Christian Egtvedt [this message]
2007-06-08 11:34 ` [PATCH 2/2] rtc-dev: return -ENOTTY in ioctl if irq_set_freq is not implemented by driver Hans-Christian Egtvedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11813024582527-git-send-email-hcegtvedt@atmel.com \
    --to=hcegtvedt@atmel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rtc-linux@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®