Commit c05f4ad1 authored by Aishwarya Pant's avatar Aishwarya Pant Committed by Greg Kroah-Hartman
Browse files

staging: bcm2835-audio: use braces on all arms of statement



Add braces on all arms of the if-else statements in bcm2835-vchiq.c to
comply with kernel coding style.

Signed-off-by: default avatarAishwarya Pant <aishpant@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da2ee3ee
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -145,9 +145,10 @@ int bcm2835_audio_start(struct bcm2835_alsa_stream *alsa_stream)
			work->cmd = BCM2835_AUDIO_START;
			if (queue_work(alsa_stream->my_wq, &work->my_work))
				ret = 0;
		} else
		} else {
			LOG_ERR(" .. Error: NULL work kmalloc\n");
		}
	}
	LOG_DBG(" .. OUT %d\n", ret);
	return ret;
}
@@ -168,9 +169,10 @@ int bcm2835_audio_stop(struct bcm2835_alsa_stream *alsa_stream)
			work->cmd = BCM2835_AUDIO_STOP;
			if (queue_work(alsa_stream->my_wq, &work->my_work))
				ret = 0;
		} else
		} else {
			LOG_ERR(" .. Error: NULL work kmalloc\n");
		}
	}
	LOG_DBG(" .. OUT %d\n", ret);
	return ret;
}
@@ -194,9 +196,10 @@ int bcm2835_audio_write(struct bcm2835_alsa_stream *alsa_stream,
			work->count = count;
			if (queue_work(alsa_stream->my_wq, &work->my_work))
				ret = 0;
		} else
		} else {
			LOG_ERR(" .. Error: NULL work kmalloc\n");
		}
	}
	LOG_DBG(" .. OUT %d\n", ret);
	return ret;
}