From: Alexey Dobriyan <adobriyan@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [PATCH] Audit return code : drivers/input/misc/hp_sdc_rtc.c
Date: Tue, 21 Jun 2005 19:24:50 +0000 [thread overview]
Message-ID: <200506212324.50215.adobriyan@gmail.com> (raw)
In-Reply-To: <20050621101313.GE4880@rhum.iomeda.fr>
On Tuesday 21 June 2005 14:16, Christophe Lucas wrote:
> Audit return codes (and handle failure correctly) for misc_register.
> --- 2.6.12-orig/drivers/input/misc/hp_sdc_rtc.c
> +++ 2.6.12/drivers/input/misc/hp_sdc_rtc.c
> @@ -702,7 +702,10 @@ static int __init hp_sdc_rtc_init(void)
>
> if ((ret = hp_sdc_request_timer_irq(&hp_sdc_rtc_isr)))
> return ret;
> - misc_register(&hp_sdc_rtc_dev);
> + if (ret = misc_register(&hp_sdc_rtc_dev)) {
hp_sdc_request_timer_irq() have hp_sdc_release_timer_irq() counterpart.
Double brackets, please. Otherwise gcc will warn. Ditto for other patches.
> + printk(KERN_WARNING "Unable to register misc device.\n");
> + return ret ;
And don't add space. Ditto for other patches.
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2005-06-21 19:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-21 10:13 [KJ] [PATCH] Audit return code : drivers/char/applicom.c Christophe Lucas
2005-06-21 10:14 ` [KJ] [PATCH] Audit return code : drivers/char/lcd.c Christophe Lucas
2005-06-21 10:16 ` [KJ] [PATCH] Audit return code : drivers/input/misc/hp_sdc_rtc.c Christophe Lucas
2005-06-21 10:17 ` [KJ] [PATCH] Audit return code : drivers/macintosh/apm_emu.c Christophe Lucas
2005-06-21 19:24 ` Alexey Dobriyan [this message]
2005-06-21 19:30 ` [KJ] [PATCH] Audit return code : drivers/char/applicom.c randy_dunlap
2005-06-21 19:42 ` Alexey Dobriyan
2005-06-21 19:44 ` randy_dunlap
2005-06-21 21:09 ` [KJ] [PATCH] Audit return code : drivers/input/misc/hp_sdc_rtc.c Matthew Wilcox
2005-06-22 7:04 ` [KJ] [PATCH] Audit return code : drivers/char/applicom.c Christophe Lucas
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=200506212324.50215.adobriyan@gmail.com \
--to=adobriyan@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.