mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 09:51:21 -04:00
media: atomisp: initialize settings to 0
Fix a compiler warning: drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c:1525:13: warning: 'settings' may be used uninitialized [-Wmaybe-uninitialized] The 'settings' variable is actually always initialized, but the compiler isn't quite able to figure that out. Just initialize it to 0 to avoid this warning. Link: https://lore.kernel.org/r/20230524121150.435736-2-hverkuil-cisco@xs4all.nl Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
625ac9af38
commit
66c1dfad00
@@ -1524,7 +1524,7 @@ static int v4l2_acpi_handle_gpio_res(struct acpi_resource *ares, void *_data)
|
||||
const char *name;
|
||||
bool active_low;
|
||||
unsigned int i;
|
||||
u32 settings;
|
||||
u32 settings = 0;
|
||||
u8 pin;
|
||||
|
||||
if (!acpi_gpio_get_io_resource(ares, &agpio))
|
||||
|
||||
Reference in New Issue
Block a user