Commit eeee8b17 authored by Aaron Moore's avatar Aaron Moore Committed by Greg Kroah-Hartman
Browse files

staging: vc04_services: Fix bracing on single statement blocks



Fix coding style issue caught by checkpatch.pl relating to braces on
single statement blocks. This issue was corrected in 3 locations.

Signed-off-by: default avatarAaron Moore <aaron@atamisk.net>
Reviewed-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c322160a
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -80,10 +80,9 @@ void vchiu_queue_push(VCHIU_QUEUE_T *queue, VCHIQ_HEADER_T *header)
		return;

	while (queue->write == queue->read + queue->size) {
		if (down_interruptible(&queue->pop) != 0) {
		if (down_interruptible(&queue->pop) != 0)
			flush_signals(current);
	}
	}

	/*
	 * Write to queue->storage must be visible after read from
@@ -107,10 +106,9 @@ void vchiu_queue_push(VCHIU_QUEUE_T *queue, VCHIQ_HEADER_T *header)
VCHIQ_HEADER_T *vchiu_queue_peek(VCHIU_QUEUE_T *queue)
{
	while (queue->write == queue->read) {
		if (down_interruptible(&queue->push) != 0) {
		if (down_interruptible(&queue->push) != 0)
			flush_signals(current);
	}
	}

	up(&queue->push); // We haven't removed anything from the queue.

@@ -128,10 +126,9 @@ VCHIQ_HEADER_T *vchiu_queue_pop(VCHIU_QUEUE_T *queue)
	VCHIQ_HEADER_T *header;

	while (queue->write == queue->read) {
		if (down_interruptible(&queue->push) != 0) {
		if (down_interruptible(&queue->push) != 0)
			flush_signals(current);
	}
	}

	/*
	 * Read from queue->storage must be visible after read from