Re: [PATCH 4/6] staging: pi433: pi433_if.c: fix space prohibited coding style issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 15, 2017 at 04:35:51PM -0800, Chase Metzger wrote:
> Remove unnecessary spaces before and after parenthesis' to comply
> with the kernel coding style.
> 
> Signed-off-by: Chase Metzger <chasemetzger15@xxxxxxxxx>
> ---
>  drivers/staging/pi433/pi433_if.c | 34 +++++++++++++++++-----------------
>  1 file changed, 17 insertions(+), 17 deletions(-)
> 
> diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
> index 3c5d8a05e976..ad89504655af 100644
> --- a/drivers/staging/pi433/pi433_if.c
> +++ b/drivers/staging/pi433/pi433_if.c
> @@ -342,7 +342,7 @@ pi433_receive(void *data)
>  		return retval;
>  
>  	/* now check RSSI, if low wait for getting high (RSSI interrupt) */
> -	while ( !rf69_get_flag(dev->spi, rssiExceededThreshold) ) {
> +	while (!rf69_get_flag(dev->spi, rssiExceededThreshold)) {
>  		/* allow tx to interrupt us while waiting for high RSSI */
>  		dev->interrupt_rx_allowed = true;
>  		wake_up_interruptible(&dev->tx_wait_queue);
> @@ -413,7 +413,7 @@ pi433_receive(void *data)
>  
>  	/* get payload */
>  	while (dev->rx_position < bytes_total) {
> -		if ( !rf69_get_flag(dev->spi, payloadReady) ) {
> +		if (!rf69_get_flag(dev->spi, payloadReady)) {
>  			retval = wait_event_interruptible(dev->fifo_wait_queue,
>  							  dev->free_in_fifo < FIFO_SIZE);
>  			if (retval) /* wait was interrupted */
> @@ -473,9 +473,9 @@ pi433_tx_thread(void *data)
>  		/* wait for fifo to be populated or for request to terminate*/
>  		dev_dbg(device->dev, "thread: going to wait for new messages");
>  		wait_event_interruptible(device->tx_wait_queue,
> -					 ( !kfifo_is_empty(&device->tx_fifo) ||
> -					    kthread_should_stop() ));
> -		if ( kthread_should_stop() )
> +					 (!kfifo_is_empty(&device->tx_fifo) ||
> +					    kthread_should_stop()));

Indent this properly too if you are touching it.

thanks,

greg k-h
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux