[media] cpia2: fix typo in variable initialisation
authorMariusz Kozlowski <mk@lab.zgora.pl>
Sat, 26 Mar 2011 18:20:24 +0000 (15:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:30:21 +0000 (09:30 -0300)
Currently 'fh' initialises to whatever happens to be on stack. This
looks like a typo and this patch fixes that.

Signed-off-by: Mariusz Kozlowski <mk@lab.zgora.pl>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cpia2/cpia2_v4l.c

index 5111bbc..0073a8c 100644 (file)
@@ -1313,7 +1313,7 @@ static int cpia2_g_priority(struct file *file, void *_fh, enum v4l2_priority *p)
 static int cpia2_s_priority(struct file *file, void *_fh, enum v4l2_priority prio)
 {
        struct camera_data *cam = video_drvdata(file);
-       struct cpia2_fh *fh = fh;
+       struct cpia2_fh *fh = _fh;
 
        if (cam->streaming && prio != fh->prio &&
                        fh->prio == V4L2_PRIORITY_RECORD)