From: Aishwarya Pant Date: Fri, 3 Mar 2017 18:20:53 +0000 (+0530) Subject: staging: bcm2835-audio: use min_t() macro instead of min() X-Git-Tag: v4.12-rc1~84^2~752 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25280d9774c0bad948470e704a8dd597f7d4b245;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c index 09168e7..c54bef3 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);