Changes in uspace/lib/usb/src/pipes.c [e936e8e:27a0012] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/pipes.c
re936e8e r27a0012 191 191 assert(pipe); 192 192 193 if ( usb_endpoint_pipe_is_session_started(pipe)) {193 if (pipe->hc_phone >= 0) { 194 194 return EBUSY; 195 195 } … … 217 217 assert(pipe); 218 218 219 if ( !usb_endpoint_pipe_is_session_started(pipe)) {219 if (pipe->hc_phone < 0) { 220 220 return ENOENT; 221 221 } … … 229 229 230 230 return EOK; 231 }232 233 /** Tell whether a session is started (open) on the endpoint pipe.234 *235 * The expected usage of this function is in assertions for some236 * nested functions.237 *238 * @param pipe Endpoint pipe in question.239 * @return Whether @p pipe has opened a session.240 */241 bool usb_endpoint_pipe_is_session_started(usb_endpoint_pipe_t *pipe)242 {243 return (pipe->hc_phone >= 0);244 231 } 245 232
Note:
See TracChangeset
for help on using the changeset viewer.