Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ade50f4f authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] pxa_camera: remove an unused structure pointer



As reported by smatch:

drivers/media/platform/pxa_camera.c: In function 'pxa_dma_start_channels':
drivers/media/platform/pxa_camera.c:457:21: warning: variable 'active' set but not used [-Wunused-but-set-variable]
  struct pxa_buffer *active;
                     ^~~~~~

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 8f05b34a
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -455,9 +455,6 @@ static void pxa_videobuf_set_actdma(struct pxa_camera_dev *pcdev,
static void pxa_dma_start_channels(struct pxa_camera_dev *pcdev)
static void pxa_dma_start_channels(struct pxa_camera_dev *pcdev)
{
{
	int i;
	int i;
	struct pxa_buffer *active;

	active = pcdev->active;


	for (i = 0; i < pcdev->channels; i++) {
	for (i = 0; i < pcdev->channels; i++) {
		dev_dbg(pcdev_to_dev(pcdev),
		dev_dbg(pcdev_to_dev(pcdev),