Skip to content

Commit 206704a

Browse files
arndbmchehab
authored andcommitted
media: atomisp: restore missing 'return' statement
The input_system_configure_channel_sensor() function lost its final return code in a previous patch: drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c: In function 'input_system_configure_channel_sensor': drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1649:1: error: control reaches end of non-void function [-Werror=return-type] Restore what was there originally. Link: https://lore.kernel.org/linux-media/[email protected] Fixes: 728a5c6 ("media: atomisp: remove dublicate code") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent f0c15b3 commit 206704a

File tree

1 file changed

+2
-0
lines changed
  • drivers/staging/media/atomisp/pci/hive_isp_css_common/host

1 file changed

+2
-0
lines changed

drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,8 @@ static input_system_err_t input_system_configure_channel_sensor(
16461646
default:
16471647
return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
16481648
}
1649+
1650+
return INPUT_SYSTEM_ERR_NO_ERROR;
16491651
}
16501652

16511653
// Test flags and set structure.

0 commit comments

Comments
 (0)