Skip to content
Snippets Groups Projects
Commit c694ba97 authored by Yassine Oudjana's avatar Yassine Oudjana Committed by Bryan O'Donoghue
Browse files

media: camss: camss-video: Don't zero subdev format again after initialization


In an earlier commit, setting the which field of the subdev format struct
in video_get_subdev_format was moved to a designated initializer that also
zeroes all other fields. However, the memset call that was zeroing the
fields earlier was left in place, causing the which field to be cleared
after being set in the initializer.

Remove the memset call from video_get_subdev_format to avoid clearing the
initialized which field.

Fixes: ecefa105 ("media: Zero-initialize all structures passed to subdev pad operations")
Signed-off-by: default avatarYassine Oudjana <y.oudjana@protonmail.com>
Tested-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Acked-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
parent 54140e16
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment