From: Kimberly Brown <kimbrownkd@gmail.com>
To: Julia Lawall <julia.lawall@lip6.fr>
Cc: outreachy-kernel@googlegroups.com,
Arnaud Patard <arnaud.patard@rtp-net.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [Outreachy kernel] [PATCH 2/2] staging: xgifb: vb_setmode: adjust descendant indentation to right
Date: Sun, 28 Oct 2018 22:26:58 -0400 [thread overview]
Message-ID: <20181029022658.GA158541@ubu-Virtual-Machine> (raw)
In-Reply-To: <alpine.DEB.2.21.1810281933180.2433@hadrien>
On Sun, Oct 28, 2018 at 07:34:50PM +0100, Julia Lawall wrote:
>
>
> On Sun, 28 Oct 2018, Kimberly Brown wrote:
>
> > Adjust descendant indentation so that it is placed substantially to the
> > right. This change improves code readability and complies with the
> > Linux kernel coding style.
> >
> > Signed-off-by: Kimberly Brown <kimbrownkd@gmail.com>
> > ---
> > drivers/staging/xgifb/vb_setmode.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c
> > index 62b45a30e0f1..3782f8641bf2 100644
> > --- a/drivers/staging/xgifb/vb_setmode.c
> > +++ b/drivers/staging/xgifb/vb_setmode.c
> > @@ -654,7 +654,7 @@ static void XGI_UpdateXG21CRTC(unsigned short ModeNo,
> > xgifb_reg_and(pVBInfo->P3d4, 0x11, 0x7F); /* Unlock CR0~7 */
> > if (ModeNo == 0x2E &&
> > (XGI330_RefIndex[RefreshRateTableIndex].Ext_CRT1CRTC ==
> > - RES640x480x60))
> > + RES640x480x60))
>
> The variable RefreshRateTableIndex is really long,and uses camel case,
> which is also not the kernel style. If there is a shorter version that
> would be acceptable, then perhaps the value to the right of the == could
> be on the same line, thus solving two problems at once.
Julia,
Good point! I propose 'ref_index' to replace 'RefreshRateTableIndex'. I
chose this based on the 'RefreshRateTableIndex' assignment on line 5096:
RefreshRateTableIndex = XGI330_EModeIDTable[ModeIdIndex].REFindex;
Do you have any objections to 'ref_index'?
Thanks!
>
> julia
>
> > index = 12;
> > else if (ModeNo == 0x2E &&
> > (XGI330_RefIndex[RefreshRateTableIndex].Ext_CRT1CRTC ==
> > --
> > 2.17.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/a85f97b40dabc0f2a978d0928af6bba05b9724e5.1540749179.git.kimbrownkd%40gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
next prev parent reply other threads:[~2018-10-29 2:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-28 18:09 [PATCH 0/2] staging: xgifb: vb_setmode: fix multiple line dereference and indentations Kimberly Brown
2018-10-28 18:11 ` [PATCH 1/2] staging: xgifb: vb_setmode: fix multiple line dereference Kimberly Brown
2018-10-28 18:12 ` [PATCH 2/2] staging: xgifb: vb_setmode: adjust descendant indentation to right Kimberly Brown
2018-10-28 18:34 ` [Outreachy kernel] " Julia Lawall
2018-10-29 2:26 ` Kimberly Brown [this message]
2018-10-29 5:52 ` Julia Lawall
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=20181029022658.GA158541@ubu-Virtual-Machine \
--to=kimbrownkd@gmail.com \
--cc=arnaud.patard@rtp-net.org \
--cc=gregkh@linuxfoundation.org \
--cc=julia.lawall@lip6.fr \
--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.