Commit 728a5c64 authored by Pavel Skripkin's avatar Pavel Skripkin Committed by Mauro Carvalho Chehab

media: atomisp: remove dublicate code

Removed dublicate returns and breaks inside switch
statements and useless return after switch.

Link: https://lore.kernel.org/linux-media/3944cd10bb5a64157781b1e0ef044c62c05f07c7.1620479607.git.paskripkin@gmail.comSigned-off-by: default avatarPavel Skripkin <paskripkin@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 9763267e
...@@ -903,11 +903,8 @@ static input_system_err_t input_system_configure_channel( ...@@ -903,11 +903,8 @@ static input_system_err_t input_system_configure_channel(
error = input_system_configure_channel_sensor(channel); error = input_system_configure_channel_sensor(channel);
break; break;
case INPUT_SYSTEM_SOURCE_TPG: case INPUT_SYSTEM_SOURCE_TPG:
return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
case INPUT_SYSTEM_SOURCE_PRBS: case INPUT_SYSTEM_SOURCE_PRBS:
return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
case INPUT_SYSTEM_SOURCE_FIFO: case INPUT_SYSTEM_SOURCE_FIFO:
return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
default: default:
return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
} }
...@@ -1301,13 +1298,7 @@ static input_system_err_t configuration_to_registers(void) ...@@ -1301,13 +1298,7 @@ static input_system_err_t configuration_to_registers(void)
break; break;
case INPUT_SYSTEM_SOURCE_TPG: case INPUT_SYSTEM_SOURCE_TPG:
break;
case INPUT_SYSTEM_SOURCE_PRBS: case INPUT_SYSTEM_SOURCE_PRBS:
break;
case INPUT_SYSTEM_SOURCE_FIFO: case INPUT_SYSTEM_SOURCE_FIFO:
break; break;
...@@ -1688,15 +1679,11 @@ static input_system_err_t input_system_configure_channel_sensor( ...@@ -1688,15 +1679,11 @@ static input_system_err_t input_system_configure_channel_sensor(
break; break;
case INPUT_SYSTEM_FIFO_CAPTURE_WITH_COUNTING: case INPUT_SYSTEM_FIFO_CAPTURE_WITH_COUNTING:
return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
case INPUT_SYSTEM_XMEM_CAPTURE: case INPUT_SYSTEM_XMEM_CAPTURE:
return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
case INPUT_SYSTEM_XMEM_ACQUIRE: case INPUT_SYSTEM_XMEM_ACQUIRE:
return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
default: default:
return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
} }
return INPUT_SYSTEM_ERR_NO_ERROR;
} }
// Test flags and set structure. // Test flags and set structure.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment