All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: Maya Nakamura <m.maya.nakamura@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>,
	gregkh@linuxfoundation.org, outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] staging: rtlwifi: Remove unnecessary conditions
Date: Tue, 30 Oct 2018 20:31:31 -0400	[thread overview]
Message-ID: <20181031003131.GF194472@sasha-vm> (raw)
In-Reply-To: <20181031000614.GA2226@k-vBox>

On Tue, Oct 30, 2018 at 05:06:15PM -0700, Maya Nakamura wrote:
>On Tue, Oct 30, 2018 at 08:46:21AM +0100, Julia Lawall wrote:
>> On Mon, 29 Oct 2018, Maya Nakamura wrote:
>> > @@ -168,9 +159,7 @@ void phydm_init_debug_setting(struct phy_dm_struct *dm)
>> >  	dm->debug_level = ODM_DBG_TRACE;
>> >
>> >  	dm->fw_debug_components = 0;
>> > -	dm->debug_components =
>> > -
>> > -		0;
>> > +	dm->debug_components = 0;
>>
>>
>> Does this belong here?  I don't see an if nearby.  You should make a
>> series if you want to do two different things on the same file.
>>
>> julia
>
>Thank you, Julia, for reviewing my submission! I will separate different
>types of fixes into their own patches and resend these.

Hi Maya,

I'm guessing that while you were working on your original plan to remove
unnecessary conditions you saw the weird looking piece of code above and
decided to fix it as well. As a result, while you dealt nicely with this
cleanup, you ended up with unrelated changes in the same patch.

An easy way to work around it is the '-p' flag to 'git add'. This flag
lets you interactively select hunks to stage in git; you don't have to
'git add' and entire file, but can just add parts of it.

This way, you stage only the relevant hunks and 'git commit' them when
you're ready. Rinse and repeat for every set of hunks that represents a
single logical change.

--
Thanks,
Sasha


  reply	other threads:[~2018-10-31  0:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-30  6:36 [PATCH] staging: rtlwifi: Remove unnecessary conditions Maya Nakamura
2018-10-30  7:46 ` [Outreachy kernel] " Julia Lawall
2018-10-31  0:06   ` Maya Nakamura
2018-10-31  0:31     ` Sasha Levin [this message]
2018-10-31  5:01       ` Maya Nakamura

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=20181031003131.GF194472@sasha-vm \
    --to=sashal@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=julia.lawall@lip6.fr \
    --cc=m.maya.nakamura@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.