All of lore.kernel.org
 help / color / mirror / Atom feed
From: Janani Ravichandran <janani.rvchndrn@gmail.com>
To: outreachy-kernel <outreachy-kernel@googlegroups.com>
Cc: janani.rvchndrn@gmail.com
Subject: Re: [Outreachy kernel] [PATCH] staging: xgifb: Rename local variable
Date: Tue, 9 Feb 2016 14:21:58 -0800 (PST)	[thread overview]
Message-ID: <14b3e344-151e-439e-b909-acddc7f02875@googlegroups.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1602092258480.2066@localhost6.localdomain6>


[-- Attachment #1.1: Type: text/plain, Size: 2390 bytes --]



On Tuesday, 9 February 2016 16:59:26 UTC-5, Julia Lawall wrote:
>
> On Tue, 9 Feb 2016, Janani Ravichandran wrote: 
>
> > As one of the global variables and a local variable share the same name, 
> > change the name of the local variable to avoid confusion. 
>
> Maybe local_refresh_rate might be better?  I'm not sure that ref is so 
> obvious as an abbreviation for refresh. 
>

I will send a version 2 for this making that correction.

Janani. 

>
> julia 
>
> > 
> > Signed-off-by: Janani Ravichandran <janani....@gmail.com <javascript:>> 
> > --- 
> >  drivers/staging/xgifb/XGI_main_26.c | 4 ++-- 
> >  1 file changed, 2 insertions(+), 2 deletions(-) 
> > 
> > diff --git a/drivers/staging/xgifb/XGI_main_26.c 
> b/drivers/staging/xgifb/XGI_main_26.c 
> > index f11cea1..ad8aaa2 100644 
> > --- a/drivers/staging/xgifb/XGI_main_26.c 
> > +++ b/drivers/staging/xgifb/XGI_main_26.c 
> > @@ -1230,7 +1230,7 @@ static int XGIfb_check_var(struct 
> fb_var_screeninfo *var, struct fb_info *info) 
> >          unsigned int vtotal = 0; 
> >          unsigned int drate = 0, hrate = 0; 
> >          int found_mode = 0; 
> > -        int refresh_rate, search_idx; 
> > +        int ref_rate, search_idx; 
> >   
> >          if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_NONINTERLACED) { 
> >                  vtotal = var->upper_margin + var->yres + 
> var->lower_margin 
> > @@ -1268,7 +1268,7 @@ static int XGIfb_check_var(struct 
> fb_var_screeninfo *var, struct fb_info *info) 
> >   
> >          /* Calculation wrong for 1024x600 - force it to 60Hz */ 
> >          if ((var->xres == 1024) && (var->yres == 600)) 
> > -                refresh_rate = 60; 
> > +                ref_rate = 60; 
> >   
> >          search_idx = 0; 
> >          while ((XGIbios_mode[search_idx].mode_no != 0) && 
> > -- 
> > 2.5.0 
> > 
> > -- 
> > 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-kern...@googlegroups.com <javascript:>. 
> > To post to this group, send email to outreach...@googlegroups.com 
> <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/outreachy-kernel/20160210015234.GA12338%40janani-Inspiron-3521. 
>
> > For more options, visit https://groups.google.com/d/optout. 
> > 
>

[-- Attachment #1.2: Type: text/html, Size: 4405 bytes --]

      reply	other threads:[~2016-02-09 22:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-10  1:52 [PATCH] staging: xgifb: Rename local variable Janani Ravichandran
2016-02-09 21:59 ` [Outreachy kernel] " Julia Lawall
2016-02-09 22:21   ` Janani Ravichandran [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=14b3e344-151e-439e-b909-acddc7f02875@googlegroups.com \
    --to=janani.rvchndrn@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.