diff options
author | Aishwarya Pant <aishpant@gmail.com> | 2017-03-03 23:47:16 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-06 14:12:31 +0100 |
commit | c05f4ad13980020f2fa5cd4d9d4c79133f9e2745 (patch) | |
tree | 973be414e8596b26aee316f2831ebf4967340a6c | |
parent | da2ee3eeb8a4000844a2cceb2c07cb4b3ea8bb1c (diff) |
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: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c index 3cc75b381f4c..07f7c347d3f3 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c @@ -145,8 +145,9 @@ 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,8 +169,9 @@ 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,8 +196,9 @@ 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; |