Skip to content

Commit

Permalink
staging: pi433: cleanup local variable
Browse files Browse the repository at this point in the history
Rename temporary local variable and add required blank line.

Fixes checkpatch warning:

  WARNING: Missing a blank line after declarations

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Valentin Vidic authored and Greg Kroah-Hartman committed Mar 22, 2018
1 parent f066ac1 commit dba18d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/staging/pi433/pi433_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,12 +711,13 @@ pi433_tx_thread(void *data)
while ((repetitions > 0) && (size > position)) {
if ((size - position) > device->free_in_fifo) {
/* msg to big for fifo - take a part */
int temp = device->free_in_fifo;
int write_size = device->free_in_fifo;

device->free_in_fifo = 0;
rf69_write_fifo(spi,
&device->buffer[position],
temp);
position += temp;
write_size);
position += write_size;
} else {
/* msg fits into fifo - take all */
device->free_in_fifo -= size;
Expand Down

0 comments on commit dba18d6

Please sign in to comment.