From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH 11/39] hwmon: (ds1621 Fix checkpatch issues
Date: Fri, 20 Jan 2012 14:44:58 +0000 [thread overview]
Message-ID: <20120120144458.GA353@ericsson.com> (raw)
In-Reply-To: <1326703781-14272-12-git-send-email-linux@roeck-us.net>
On Fri, Jan 20, 2012 at 08:47:34AM -0500, Jean Delvare wrote:
> On Mon, 16 Jan 2012 00:49:13 -0800, Guenter Roeck wrote:
> > Fixed:
> > ERROR: code indent should use tabs where possible
> > ERROR: do not use assignment in if condition
> > ERROR: trailing whitespace
> > WARNING: labels should not be indented
> > WARNING: please, no spaces at the start of a line
> > WARNING: simple_strtol is obsolete, use kstrtol instead
> >
> > Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> > ---
> > drivers/hwmon/ds1621.c | 32 +++++++++++++++++++-------------
> > 1 files changed, 19 insertions(+), 13 deletions(-)
> >
> > diff --git a/drivers/hwmon/ds1621.c b/drivers/hwmon/ds1621.c
> > index ef1ac996..e23a8ab 100644
> > --- a/drivers/hwmon/ds1621.c
> > +++ b/drivers/hwmon/ds1621.c
> > (...)
> > @@ -265,11 +271,11 @@ static int ds1621_probe(struct i2c_client *client,
> >
> > return 0;
> >
> > - exit_remove_files:
> > +exit_remove_files:
> > sysfs_remove_group(&client->dev.kobj, &ds1621_group);
> > - exit_free:
> > +exit_free:
> > kfree(data);
> > - exit:
> > +exit:
> > return err;
> > }
> >
>
> It is generally accepted to indent labels with a single space. This
> avoids breaking the -p option of diff. I think checkpatch would be
> happy with this, and I'd prefer this to no indentation at all as you
> did.
>
Yes, it is.
> All other changes look good, tested OK too. If you fix adjust the
> labels as suggested above, you can add:
>
> Acked-by: Jean Delvare <khali@linux-fr.org>
>
Will do.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
prev parent reply other threads:[~2012-01-20 14:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-16 8:49 [lm-sensors] [PATCH 11/39] hwmon: (ds1621 Fix checkpatch issues Guenter Roeck
2012-01-20 13:47 ` Jean Delvare
2012-01-20 14:44 ` Guenter Roeck [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=20120120144458.GA353@ericsson.com \
--to=guenter.roeck@ericsson.com \
--cc=lm-sensors@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.