diff options
author | Stanimir Varbanov <stanimir.varbanov@linaro.org> | 2020-12-04 11:01:39 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-01-13 09:08:18 +0100 |
commit | e922a33e0228fa314ffc4f70b3b9ffbc4aad1bbe (patch) | |
tree | 733247238420cd5d5434b9ebd6dbbc263abff25e /drivers/fpga/fpga-bridge.c | |
parent | 7f339fdc3756e193136a167bfcfdfbfdaec42306 (diff) |
media: venus: hfi: Correct session init return error
The hfi_session_init can be called many times and it returns
EINVAL when the session was already initialized. This error code
(EINVAL) is confusing for the callers. Change hfi_session_init to
return EALREADY error code when the session has been already
initialized.
Tested-by: Fritz Koenig <frkoenig@chromium.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions