]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: davinci: fix incorrect pix_fmt assignment
authorCengiz Can <cengiz@kernel.wtf>
Thu, 16 Jan 2020 15:12:30 +0000 (16:12 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 16:15:01 +0000 (17:15 +0100)
There's a mistakenly written self assignment in
`static int vpfe_enum_fmt_vid_cap(..)`.

Fixed it according to Prabhakar Lad's feedback.

Signed-off-by: Cengiz Can <cengiz@kernel.wtf>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/davinci/vpfe_capture.c

index 5606da559bdf9c2a31f4373d58c13143fa6f0d11..f9f7dd17c57c3706eb2a38c4842b8dbce152a54e 100644 (file)
@@ -880,7 +880,7 @@ static int vpfe_enum_fmt_vid_cap(struct file *file, void  *priv,
        /* Fill in the information about format */
        pix_fmt = vpfe_lookup_pix_format(pix);
        if (pix_fmt) {
-               fmt->pixelformat = fmt->pixelformat;
+               fmt->pixelformat = pix_fmt->pixelformat;
                return 0;
        }
        return -EINVAL;