media: davinci: fix incorrect pix_fmt assignment

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>
This commit is contained in:
Cengiz Can 2020-01-16 16:12:30 +01:00 committed by Mauro Carvalho Chehab
parent 6821660c43
commit 5dbef6b3e0
1 changed files with 1 additions and 1 deletions

View File

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