public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Clarify expression which uses both multiplication and pointer dereference
@ 2015-05-17 17:18 Alex Dowad
  2015-05-17 19:43 ` Laurent Pinchart
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alex Dowad @ 2015-05-17 17:18 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Greg Kroah-Hartman, Hans Verkuil,
	Lad, Prabhakar, Laurent Pinchart, Ramakrishnan Muthukrishnan,
	open list:MEDIA INPUT INFRA..., open list:STAGING SUBSYSTEM,
	open list

This fixes a checkpatch style error in vpfe_buffer_queue_setup.

Signed-off-by: Alex Dowad <alexinbeijing@gmail.com>
---
 drivers/staging/media/davinci_vpfe/vpfe_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/davinci_vpfe/vpfe_video.c b/drivers/staging/media/davinci_vpfe/vpfe_video.c
index 06d48d5..04a687c 100644
--- a/drivers/staging/media/davinci_vpfe/vpfe_video.c
+++ b/drivers/staging/media/davinci_vpfe/vpfe_video.c
@@ -1095,7 +1095,7 @@ vpfe_buffer_queue_setup(struct vb2_queue *vq, const struct v4l2_format *fmt,
 	size = video->fmt.fmt.pix.sizeimage;
 
 	if (vpfe_dev->video_limit) {
-		while (size * *nbuffers > vpfe_dev->video_limit)
+		while (size * (*nbuffers) > vpfe_dev->video_limit)
 			(*nbuffers)--;
 	}
 	if (pipe->state == VPFE_PIPELINE_STREAM_CONTINUOUS) {
-- 
2.0.0.GIT


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-18 10:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-17 17:18 [PATCH] Clarify expression which uses both multiplication and pointer dereference Alex Dowad
2015-05-17 19:43 ` Laurent Pinchart
2015-05-17 20:16 ` Joe Perches
2015-05-18  6:51 ` Michal Kubecek
2015-05-18  8:06   ` Lad, Prabhakar
     [not found]     ` <55599F8A.6030401@xs4all.nl>
2015-05-18 10:06       ` Lad, Prabhakar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox