[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211104120552.GY2794@kadam>
Date: Thu, 4 Nov 2021 15:05:52 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Karolina Drobnik <karolinadrobnik@...il.com>
Cc: outreachy-kernel@...glegroups.com, gregkh@...uxfoundation.org,
forest@...ttletooquiet.net, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/7] staging: vt6655: Introduce `idx` temporary variable
On Thu, Oct 28, 2021 at 11:35:31AM +0100, Karolina Drobnik wrote:
> Add a local variable to store `MISCFIFO_SYNDATA_IDX` offset.
> This change helps in shortening the lines in `rf.c` that
> are deemed too long by checkpatch.pl.
>
No, this just makes the code harder to read. Don't introduce a local
variable which only holds a global constant. Variables should be
variable and constants should be constants. No one wants to have to
look up things for no reason.
regards,
dan carpenter
Powered by blists - more mailing lists