Commit 01e651ee authored by Sebastien Gougeaud's avatar Sebastien Gougeaud Committed by Thomas Leibovici
Browse files

fix: correct a check from EAGAIN to -EAGAIN



This check happens when phobosd processes a notify request. Our return
codes in case of error are set to -errno.

Change-Id: Ibe3c56aedb5339a67137891dfe1a33fca3d6b567
Signed-off-by: default avatarSebastien Gougeaud <sebastien.gougeaud@cea.fr>
Reviewed-on: https://cws-fleury.labs.ocre.cea.fr/gerrit/6566


Reviewed-by: Linter
Tested-by: default avatarJenkins s8open_nr <s8open_nr@ccc.ocre.cea.fr>
Reviewed-by: default avatarQuentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: default avatarThomas Leibovici <thomas.leibovici@cea.fr>
parent 5a4df77e
......@@ -2719,7 +2719,7 @@ static int sched_handle_notify(struct lrs_sched *sched, pho_req_t *req,
err:
pho_srl_response_free(resp, false);
if (rc != EAGAIN) {
if (rc != -EAGAIN) {
int rc2 = pho_srl_response_error_alloc(resp);
if (rc2)
......
Supports Markdown
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