Skip to content

Commit

Permalink
media: davinci: fix incorrect pix_fmt assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cengiz Can authored and Mauro Carvalho Chehab committed Feb 24, 2020
1 parent 6821660 commit 5dbef6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/davinci/vpfe_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5dbef6b

Please sign in to comment.