mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
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>
This commit is contained in:
parent
da2ee3eeb8
commit
c05f4ad139
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue