[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171213144745.tzb2kaeivxb6sz4n@mwanda>
Date: Wed, 13 Dec 2017 17:47:45 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Valentin Vidic <Valentin.Vidic@...Net.hr>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Marcin Ciupak <marcin.s.ciupak@...il.com>,
Marcus Wolf <linux@...f-entwicklungen.de>,
Simon Sandström <simon@...anor.nu>
Subject: Re: [PATCH 2/8] staging: pi433: move var declaration to function
level
On Wed, Dec 13, 2017 at 03:21:50PM +0100, Valentin Vidic wrote:
> Fixes checkpatch warning:
>
> WARNING: Missing a blank line after declarations
>
> Signed-off-by: Valentin Vidic <Valentin.Vidic@...Net.hr>
> ---
> drivers/staging/pi433/pi433_if.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
> index 02887988d2ea..07e5352ae5ad 100644
> --- a/drivers/staging/pi433/pi433_if.c
> +++ b/drivers/staging/pi433/pi433_if.c
> @@ -565,6 +565,7 @@ pi433_tx_thread(void *data)
> bool rx_interrupted = false;
> int position, repetitions;
> int retval;
> + int temp;
Generally, "temp" means "temperature" and "tmp" means "temporary". The
kernel deals with both. Btw "buff" means an 80s dude in a sleeveless
shirt and "buf" means a buffer, but the kernel doesn't deal with 80's
dudes so that one is less confusing.
But the name "tmp" still isn't really ideal here.
regards,
dan carpenter
Powered by blists - more mailing lists