From: Greg KH <gregkh@linuxfoundation.org>
To: Gokce Kuler <gokcekuler@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [PATCH] staging: sm750fb: rearrange line exceeding 80 characters
Date: Thu, 19 Mar 2020 15:29:48 +0100 [thread overview]
Message-ID: <20200319142948.GB51437@kroah.com> (raw)
In-Reply-To: <20200319141612.GA11981@siyah2>
On Thu, Mar 19, 2020 at 05:16:12PM +0300, Gokce Kuler wrote:
> Moved to the bottom line after << operator for it exceeds 80 character
>
> Signed-off-by: Gokce Kuler <gokcekuler@gmail.com>
> ---
> drivers/staging/sm750fb/sm750_cursor.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/sm750fb/sm750_cursor.c b/drivers/staging/sm750fb/sm750_cursor.c
> index bbbef27..b67c545 100644
> --- a/drivers/staging/sm750fb/sm750_cursor.c
> +++ b/drivers/staging/sm750fb/sm750_cursor.c
> @@ -116,7 +116,8 @@ void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop,
> opr = mask & color;
>
> /* 2 stands for forecolor and 1 for backcolor */
> - data |= ((opr & (0x80 >> j)) ? 2 : 1) << (j * 2);
> + data |= ((opr & (0x80 >> j)) ? 2 : 1) <<
> + (j * 2);
The original code is much easier to understand and read, please leave it
as-is.
Remember, checkpatch is just a hint, not always a hard-rule.
thanks,
greg k-h
next prev parent reply other threads:[~2020-03-19 14:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-19 14:16 [PATCH] staging: sm750fb: rearrange line exceeding 80 characters Gokce Kuler
2020-03-19 14:29 ` Greg KH [this message]
2020-03-19 15:11 ` [Outreachy kernel] " Julia Lawall
2020-03-19 15:15 ` Julia Lawall
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=20200319142948.GB51437@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=gokcekuler@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
/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.