aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-12-13 06:52:51 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-23 07:33:59 -0500
commite5b30145e56a20caeffed553d1239e401e4fb4e2 (patch)
treeb95c7731fb46acfb88a590109b7958df49d10c1d /drivers/media/pci
parent88f414f476bdf9def8123fec49890a3c94b5fb53 (diff)
[media] av7110: fix sparse warning
drivers/media/pci/ttpci/av7110.c:1226:15: warning: memset with byte count of 192512 Instead of memsetting this in one go, loop over each line and memset each line separately. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/ttpci/av7110.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/pci/ttpci/av7110.c b/drivers/media/pci/ttpci/av7110.c
index c1f0617a6973..45199a12b9d9 100644
--- a/drivers/media/pci/ttpci/av7110.c
+++ b/drivers/media/pci/ttpci/av7110.c
@@ -1219,11 +1219,14 @@ static int stop_ts_capture(struct av7110 *budget)
1219 1219
1220static int start_ts_capture(struct av7110 *budget) 1220static int start_ts_capture(struct av7110 *budget)
1221{ 1221{
1222 unsigned y;
1223
1222 dprintk(2, "budget: %p\n", budget); 1224 dprintk(2, "budget: %p\n", budget);
1223 1225
1224 if (budget->feeding1) 1226 if (budget->feeding1)
1225 return ++budget->feeding1; 1227 return ++budget->feeding1;
1226 memset(budget->grabbing, 0x00, TS_BUFLEN); 1228 for (y = 0; y < TS_HEIGHT; y++)
1229 memset(budget->grabbing + y * TS_WIDTH, 0x00, TS_WIDTH);
1227 budget->ttbp = 0; 1230 budget->ttbp = 0;
1228 SAA7146_ISR_CLEAR(budget->dev, MASK_10); /* VPE */ 1231 SAA7146_ISR_CLEAR(budget->dev, MASK_10); /* VPE */
1229 SAA7146_IER_ENABLE(budget->dev, MASK_10); /* VPE */ 1232 SAA7146_IER_ENABLE(budget->dev, MASK_10); /* VPE */