Skip to content

Commit

Permalink
[media] marvell-cam: no need to initialize the DMA buffers
Browse files Browse the repository at this point in the history
This was an old debugging thing from years ago.  It's only done at
initialization time, but it's still unnecessary; take it out.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jonathan Corbet authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 362d45b commit 9d48a51
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/media/video/marvell-ccic/mcam-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,6 @@ static int mcam_alloc_dma_bufs(struct mcam_camera *cam, int loadtime)
cam_warn(cam, "Failed to allocate DMA buffer\n");
break;
}
/* For debug, remove eventually */
memset(cam->dma_bufs[i], 0xcc, cam->dma_buf_size);
(cam->nbufs)++;
}

Expand Down

0 comments on commit 9d48a51

Please sign in to comment.