summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2019-03-19 11:32:09 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2019-03-20 10:25:30 +0000
commit18647a532483470d9f64bc6cb1bbeeda39c2670d (patch)
tree8ab1218d75e20926af55490b5929df8105afb02a /meson_options.txt
parentaf2144231eef8bc738b9de4acd2c41e296ae6ede (diff)
libcamera: media_device: Initialise local variable
The local variable ifaceId generates a compiler warning that it is used without initialisation. The loop, and check against the loop iterator, and the topology.num_interfaces actually ensures that this isn't the case, and that ifaceId can only be used when set to a valid ID. The media_v2_interface.id field documents the ID as simply "Unique ID for the interface" but does not specify if zero is a valid ID or not. As such we don't further check the pre-initialised ID for validity and keep the existing check on the iterator count to determine if the ID had been discovered successfully. Fixes: d4af90d72901 ("libcamera: media_device: Create entities with major and minor numbers") Acked-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'meson_options.txt')
0 files changed, 0 insertions, 0 deletions