From: Greg KH <gregkh@linuxfoundation.org>
To: Bhumika Goyal <bhumirks@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] Staging: xgifb: Use shorthand operator
Date: Thu, 11 Feb 2016 19:48:31 -0800 [thread overview]
Message-ID: <20160212034831.GA23192@kroah.com> (raw)
In-Reply-To: <1455033333-31657-1-git-send-email-bhumirks@gmail.com>
On Tue, Feb 09, 2016 at 09:25:33PM +0530, Bhumika Goyal wrote:
> Use shorthand operator for assignment statement to make code look cleaner.
> Made a coccinelle script for this and did changes.
> @@
> identifier data;
> constant x;
> @@
>
> (
> - data = data + x
> + data += x
> |
> - data = data - x
> + data -= x
> )
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
> ---
> drivers/staging/xgifb/vb_setmode.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c
> index de96da1..0daa661 100644
> --- a/drivers/staging/xgifb/vb_setmode.c
> +++ b/drivers/staging/xgifb/vb_setmode.c
> @@ -289,7 +289,7 @@ static void XGI_SetCRT1Timing_H(struct vb_device_info *pVBInfo,
>
> if (HwDeviceExtension->jChipType >= XG20) {
> data = xgifb_reg_get(pVBInfo->P3d4, 0x04);
> - data = data - 1;
> + data -= 1;
Sorry, I'm not going to take these kinds of "cleanups" anymore, they
aren't doing much...
greg k-h
prev parent reply other threads:[~2016-02-12 3:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 15:55 [PATCH] Staging: xgifb: Use shorthand operator Bhumika Goyal
2016-02-09 15:58 ` [Outreachy kernel] " Julia Lawall
2016-02-09 19:17 ` Bhumika Goyal
2016-02-12 3:48 ` Greg KH [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=20160212034831.GA23192@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=bhumirks@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.