From: Richard <h.vanberkum@chello.nl>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [PATCH] drivers/parisc/superio.c: check return values of
Date: Tue, 11 Jul 2006 22:02:55 +0000 [thread overview]
Message-ID: <44B4200F.201@chello.nl> (raw)
In-Reply-To: <20060711020442.GA17650@chello.nl>
Randy.Dunlap wrote:
Hello Randy,
>> + if (!(request_region (IC_PIC1, 0x1f, "pic1"))) {
>
> Coding style: no extra parens (like after !).
> no space after function name.
The space must be a mistake. About the parens I didn't know. Thanks
>
>> + printk(KERN_ERR "can't get I/O %x\n", IC_PIC1);
>> + goto err1;
>> + }
>> +
>> + if(!(request_region (IC_PIC2, 0x1f, "pic2"))) {
>
> space after "if". drop "!()" parens.
> no space after function name.
Clear :)
>> /* Enable the legacy I/O function */
>> pci_read_config_word (pdev, PCI_COMMAND, &word);
>> @@ -276,10 +287,22 @@ superio_init(struct pci_dev *pcidev)
>>
>> printk(KERN_ERR PFX "could not get irq\n");
>> BUG();
>> - return;
>> +
>> + /*Free resources previously requested*/
>
> See above /* comment for spacing.
I see for clarity I gues. I'll try to remember.
>> +err1: return;
>> +
>> }
>
> Put labels and statements on separate lines.
Ok. That was some good input on coding style.Thanks, but it's no use to continue on this with regard to the previous post
>
> ---
> ~Randy
>
Richard
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
prev parent reply other threads:[~2006-07-11 22:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-10 23:41 [KJ] [PATCH] drivers/parisc/superio.c: check return values of Richard
2006-07-11 15:32 ` Kyle McMartin
2006-07-11 15:44 ` Randy.Dunlap
2006-07-11 22:02 ` Richard [this message]
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=44B4200F.201@chello.nl \
--to=h.vanberkum@chello.nl \
--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.