sim/usbhost: modify ctrlin return value

On success, zero (OK) is returned. On a failure, a negated errno value
is returned indicating the nature of the failure.

Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
yangsong8
2025-06-27 20:02:55 +08:00
committed by Xiang Xiao
parent 96707bd967
commit 199290c0ee
+1 -1
View File
@@ -569,7 +569,7 @@ static int sim_usbhost_ctrlin(struct usbhost_driver_s *drvr,
nxsem_wait(&ep0info->iocsem);
nxsem_destroy(&ep0info->iocsem);
return ep0info->xfrd;
return ep0info->xfrd < 0 ? ep0info->xfrd : OK;
}
/****************************************************************************