LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Nick Simonov <nicksimonovv@gmail.com>
Cc: rydberg@bitmath.org, linux-input@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] input: fix coding style issues in input.c
Date: Wed, 9 May 2018 17:33:13 -0700 [thread overview]
Message-ID: <20180510003313.GD91762@dtor-ws> (raw)
In-Reply-To: <1525874834-20432-1-git-send-email-nicksimonovv@gmail.com>
Hi NIck,
On Wed, May 09, 2018 at 05:07:14PM +0300, Nick Simonov wrote:
> This is a patch to the input.c file that fixes
> up warning found by checkpatch.pl tool
>
> Signed-off-by: Nick Simonov <nicksimonovv@gmail.com>
> ---
> drivers/input/input.c | 52 ++++++++++++++++++++++++++++++++-------------------
> 1 file changed, 33 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/input/input.c b/drivers/input/input.c
> index 9785546..e18fdae 100644
> --- a/drivers/input/input.c
> +++ b/drivers/input/input.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0
> /*
> * The input core
> *
> @@ -252,7 +253,8 @@ static int input_handle_abs_event(struct input_dev *dev,
> }
>
> /* Flush pending "slot" event */
> - if (is_mt_event && mt && mt->slot != input_abs_get_val(dev, ABS_MT_SLOT)) {
> + if (is_mt_event && mt && mt->slot !=
> + input_abs_get_val(dev, ABS_MT_SLOT)) {
> input_abs_set_val(dev, ABS_MT_SLOT, mt->slot);
So now it is not immediately clear what is part of condition and what is
part of body.
I am sorry to say, but with most of these changes the cure is worse than
the disease. If you were fixing the code and adjusted the affected lines
so they are under 80 columns limit that would be one thing, but just
reformatting for the sake of it is not really helpful.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2018-05-10 0:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-09 14:07 Nick Simonov
2018-05-10 0:33 ` Dmitry Torokhov [this message]
2018-05-10 0:55 ` Joe Perches
2018-05-11 23:01 ` Nick Simonov
2018-05-15 17:34 ` Dmitry Torokhov
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=20180510003313.GD91762@dtor-ws \
--to=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nicksimonovv@gmail.com \
--cc=rydberg@bitmath.org \
--subject='Re: [PATCH] input: fix coding style issues in input.c' \
/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
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).