| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [patch] [XFS] indent an if statement |
| From: | Dan Carpenter <dan.carpenter@xxxxxxxxxx> |
| Date: | Wed, 21 May 2014 17:35:50 +0300 |
| Cc: | Dave Chinner <david@xxxxxxxxxxxxx>, kernel-janitors@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20140521142909.GA22281@xxxxxxxxxxxxx> |
| References: | <20140521122746.GD23396@mwanda> <20140521142909.GA22281@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Wed, May 21, 2014 at 07:29:09AM -0700, Christoph Hellwig wrote:
> On Wed, May 21, 2014 at 03:27:46PM +0300, Dan Carpenter wrote:
> > The "n += 32;" goes with the if statement on the line before so it
> > should be indented.
> >
> > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> >
> > diff --git a/fs/xfs/xfs_bit.h b/fs/xfs/xfs_bit.h
> > index f1e3c90..f685942 100644
> > --- a/fs/xfs/xfs_bit.h
> > +++ b/fs/xfs/xfs_bit.h
> > @@ -67,7 +67,7 @@ static inline int xfs_lowbit64(__uint64_t v)
> > } else { /* upper bits */
> > w = (__uint32_t)(v >> 32);
> > if (w && (n = ffs(w)))
> > - n += 32;
> > + n += 32;
>
> If we want to clean up this stuff let's do it properly:
>
> if (w) {
> n = ffs(w);
> if (n)
> n += 32;
> }
>
Sure. I will resend.
regards,
dan carpenter
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch] [XFS] indent an if statement, Christoph Hellwig |
|---|---|
| Next by Date: | Re: [RFC PATCH 0/2] xfs: sysfs attribute support, Christoph Hellwig |
| Previous by Thread: | Re: [patch] [XFS] indent an if statement, Christoph Hellwig |
| Next by Thread: | Re: [patch] [XFS] indent an if statement, walter harms |
| Indexes: | [Date] [Thread] [Top] [All Lists] |