All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@lip6.fr>
To: Vaishali Thakkar <vthakkar1994@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] Staging: rtl8192u: Fix duplicate conditional branch
Date: Tue, 3 Mar 2015 17:34:33 -0500 (EST)	[thread overview]
Message-ID: <alpine.DEB.2.10.1503031734190.2677@hadrien> (raw)
In-Reply-To: <CAK-LDbKcVLuoedmX-HJxaeR9ZkY9ZNXdx+j7xzu1kx3+pmuyXA@mail.gmail.com>

On Tue, 3 Mar 2015, Vaishali Thakkar wrote:

> On Tue, Mar 3, 2015 at 5:52 PM, Julia Lawall <julia.lawall@lip6.fr> wrote:
> > On Tue, 3 Mar 2015, Vaishali Thakkar wrote:
> >
> >> Replace duplicate branch with correct value. This branch
> >> is supposed to work for low thresh value.
> >
> > How did you find the problem?
>
> From git log. I was looking for git log of driver rtl8192e for that setup_timer
> problem and saw that someone sent a patch for this. And as rtl8192u and
> rtl8192e follows the same structure, I just looked at file of this driver. And
> this problem for rtl8192u was still there. So, I just sent a patch.
>
> Also, while changing this code I found that rtl8192u is not using any macro and
> rtl8192e was using one useless macro. So, I sent a patch for it also.

Good work :)

julia

> > julia
> >
> >> Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
> >> ---
> >>  drivers/staging/rtl8192u/r8192U_dm.c | 4 ++--
> >>  1 file changed, 2 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
> >> index 7199616..5a01b7d 100644
> >> --- a/drivers/staging/rtl8192u/r8192U_dm.c
> >> +++ b/drivers/staging/rtl8192u/r8192U_dm.c
> >> @@ -1628,8 +1628,8 @@ void dm_change_dynamic_initgain_thresh(struct net_device *dev, u32 dm_type,
> >>               dm_digtable.rssi_low_thresh = dm_value;
> >>       } else if (dm_type == DIG_TYPE_THRESH_HIGHPWR_HIGH) {
> >>               dm_digtable.rssi_high_power_highthresh = dm_value;
> >> -     } else if (dm_type == DIG_TYPE_THRESH_HIGHPWR_HIGH) {
> >> -             dm_digtable.rssi_high_power_highthresh = dm_value;
> >> +     } else if (dm_type == DIG_TYPE_THRESH_HIGHPWR_LOW) {
> >> +             dm_digtable.rssi_high_power_lowthresh = dm_value;
> >>       } else if (dm_type == DIG_TYPE_ENABLE) {
> >>               dm_digtable.dig_state           = DM_STA_DIG_MAX;
> >>               dm_digtable.dig_enable_flag     = true;
> >> --
> >> 1.9.1
> >>
> >> --
> >> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> >> To post to this group, send email to outreachy-kernel@googlegroups.com.
> >> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1bdb9ff234b262793c0537cc9e11cf087202e61a.1425367678.git.vthakkar1994%40gmail.com.
> >> For more options, visit https://groups.google.com/d/optout.
> >>
>
>
>
> --
> Vaishali
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/CAK-LDbKcVLuoedmX-HJxaeR9ZkY9ZNXdx%2Bj7xzu1kx3%2BpmuyXA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


  reply	other threads:[~2015-03-03 22:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1425367678.git.vthakkar1994@gmail.com>
2015-03-03  7:38 ` [PATCH] Staging: rtl8192e: Eliminate use of macro IS_NIC_DOWN Vaishali Thakkar
2015-03-03  7:39 ` [PATCH] Staging: rtl8192u: Fix duplicate conditional branch Vaishali Thakkar
2015-03-03 12:22   ` [Outreachy kernel] " Julia Lawall
2015-03-03 13:23     ` Vaishali Thakkar
2015-03-03 22:34       ` Julia Lawall [this message]
2015-03-04  2:25         ` Vaishali Thakkar

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=alpine.DEB.2.10.1503031734190.2677@hadrien \
    --to=julia.lawall@lip6.fr \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=vthakkar1994@gmail.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.