From: David Miller <davem@davemloft.net>
To: Matheos.Worku@Sun.COM
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH 1/1] [NIU] Redo the fix for getting # of ports from EEPROM
Date: Thu, 08 May 2008 17:25:13 -0700 (PDT) [thread overview]
Message-ID: <20080508.172513.01395291.davem@davemloft.net> (raw)
In-Reply-To: <482398E3.9000206@sun.com>
From: Matheos Worku <Matheos.Worku@Sun.COM>
Date: Thu, 08 May 2008 17:20:51 -0700
> @@ -8000,6 +7990,11 @@ static int __devinit niu_get_of_props(struct niu *np)
>
> memcpy(dev->dev_addr, dev->perm_addr, dev->addr_len);
>
> + model = of_get_property(dp, "model", &prop_len);
> +
> + if (model)
> + strcpy(np->vpd.model, model);
> +
Please fix the indentation in cases like this. There should
be two tab characters in front of the strcpy().
I don't know what editor you use, but in emacs the editor
can take care of this automatically for you by simply typing
"M-x c-set-style RET linux RET"
I've been fixing up these coding style issues for you in the past, and
I've had to do so for every single patch you send me. Unfortunately,
it's consuming a lot of my time and I'm not going to do it any more.
Therefore, please have a read up of:
linux/Documentation/CodingStyle
which should help you in this area. But generally, if you follow the
existing conventions in the rest of the niu.[ch] files you'll be OK
;-)
Another thing I noticed you do is put two blank lines between
functions, please only use one.
Please also write a full changelog description so people can
understand what you are doing here.
Thank you.
prev parent reply other threads:[~2008-05-09 0:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-09 0:20 [PATCH 1/1] [NIU] Redo the fix for getting # of ports from EEPROM Matheos Worku
2008-05-09 0:25 ` David Miller [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=20080508.172513.01395291.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=Matheos.Worku@Sun.COM \
--cc=netdev@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 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).