Re: [PATCH 1/7] staging: vt6655: Introduce `idx` temporary variable

From: Dan Carpenter
Date: Thu Nov 04 2021 - 08:06:29 EST


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