summaryrefslogtreecommitdiff
path: root/drivers/staging/vc04_services/bcm2835-audio
diff options
context:
space:
mode:
authorAishwarya Pant <aishpant@gmail.com>2017-03-03 21:20:53 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-06 16:12:32 +0300
commit25280d9774c0bad948470e704a8dd597f7d4b245 (patch)
tree1ab2152c86b8015e134082b4321ccf42defa3e7d /drivers/staging/vc04_services/bcm2835-audio
parentc8280337226fc45e7b84a00de5ac6e740369a342 (diff)
downloadlinux-25280d9774c0bad948470e704a8dd597f7d4b245.tar.xz
staging: bcm2835-audio: use min_t() macro instead of min()
use min_t() macro in place of min() to replace the two typecasts of min. Change suggested by checkpatch script. Signed-off-by: Aishwarya Pant <aishpant@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vc04_services/bcm2835-audio')
-rw-r--r--drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c
index 09168e790815..c54bef351dc1 100644
--- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c
+++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c
@@ -856,7 +856,7 @@ static int bcm2835_audio_write_worker(struct bcm2835_alsa_stream *alsa_stream,
NULL);
} else {
while (count > 0) {
- int bytes = min((int)m.u.write.max_packet, (int)count);
+ int bytes = min_t(int, m.u.write.max_packet, count);
status = bcm2835_vchi_msg_queue(instance->vchi_handle[0],
src, bytes);