All of lore.kernel.org
 help / color / mirror / Atom feed
From: Emily Peri <eperi1024@gmail.com>
To: Julia Lawall <julia.lawall@inria.fr>
Cc: outreachy@lists.linux.dev
Subject: Re: Weird formatting in rtl8723bs driver code?
Date: Wed, 19 Oct 2022 22:17:51 -0700	[thread overview]
Message-ID: <Y1DZ/53mOJqhKpjJ@marshmallow> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2210200713100.2988@hadrien>

On Thu, Oct 20, 2022 at 07:13:58AM +0200, Julia Lawall wrote:
> 
> 
> On Wed, 19 Oct 2022, Emily Peri wrote:
> 
> > I'm working on cleaning up the rtl8723bs driver with checkpatch, but I
> > noticed that some of the variable declarations have differnt amounts of
> > whitespace, like this:
> >
> >         struct cmd_obj  *ph2c;
> >         struct sitesurvey_parm  *psurveyPara;
> >         struct cmd_priv                                 *pcmdpriv = &padapter->cmdpriv;
> >         struct mlme_ext_priv    *pmlmeext = &padapter->mlmeextpriv;
> >
> > At first I thought this was intentional, but now I'm wondering if this
> > is an accident. It's normal to just use one space between the type and
> > the variable name, right?
> 
> One space should be fine.  People may like to line up the variable names
> in some cases, but this is clearly not lined up either.
> 
> julia

Oh, that makes more sense! I'll keep that in mind.

      reply	other threads:[~2022-10-20  5:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-20  2:43 Weird formatting in rtl8723bs driver code? Emily Peri
2022-10-20  4:01 ` Praveen Kumar
2022-10-20  5:15   ` Emily Peri
2022-10-20  5:13 ` Julia Lawall
2022-10-20  5:17   ` Emily Peri [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=Y1DZ/53mOJqhKpjJ@marshmallow \
    --to=eperi1024@gmail.com \
    --cc=julia.lawall@inria.fr \
    --cc=outreachy@lists.linux.dev \
    /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.