From: Eric Blake <eblake@redhat.com>
To: P J P <ppandit@redhat.com>, Qemu Developers <qemu-devel@nongnu.org>
Cc: Jason Wang <jasowang@redhat.com>,
Prasad J Pandit <pjp@fedoraproject.org>
Subject: Re: [Qemu-devel] [PATCH] net: minor indentation updates
Date: Wed, 17 Feb 2016 06:47:24 -0700 [thread overview]
Message-ID: <56C479EC.3090802@redhat.com> (raw)
In-Reply-To: <1455712553-14974-1-git-send-email-ppandit@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]
On 02/17/2016 05:35 AM, P J P wrote:
> From: Prasad J Pandit <pjp@fedoraproject.org>
>
> Due indentation and braces were missing at places, added them.
>
Cleaning up existing code is best done as part of a series that is
otherwise touching the code; doing it in isolation makes 'git blame'
attribute the wrong author for no good reason.
> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
> ---
> net/checksum.c | 20 +++++++++++---------
> 1 file changed, 11 insertions(+), 9 deletions(-)
>
> diff --git a/net/checksum.c b/net/checksum.c
> index e51698c..a8c47e3 100644
> --- a/net/checksum.c
> +++ b/net/checksum.c
> @@ -38,8 +38,9 @@ uint32_t net_checksum_add_cont(int len, uint8_t *buf, int seq)
>
> uint16_t net_checksum_finish(uint32_t sum)
> {
> - while (sum>>16)
> - sum = (sum & 0xFFFF)+(sum >> 16);
> + while (sum>>16) {
> + sum = (sum & 0xFFFF)+(sum >> 16);
If we DO decide the touch-up is worth it, please add spaces around the
binary + as part of the cleanup.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2016-02-17 13:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-17 12:35 [Qemu-devel] [PATCH] net: minor indentation updates P J P
2016-02-17 13:47 ` Eric Blake [this message]
2016-02-17 18:54 ` P J P
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=56C479EC.3090802@redhat.com \
--to=eblake@redhat.com \
--cc=jasowang@redhat.com \
--cc=pjp@fedoraproject.org \
--cc=ppandit@redhat.com \
--cc=qemu-devel@nongnu.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.