Changeset 7fa8589 in mainline
- Timestamp:
- 2020-01-09T01:04:58Z (5 years ago)
- Children:
- bcd7775
- Parents:
- 76c8209
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2020-01-05 20:21:10)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2020-01-09 01:04:58)
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/sysipc.c
r76c8209 r7fa8589 192 192 spinlock_unlock(&answer->forget_lock); 193 193 194 if ( (errno_t)ipc_get_retval(&answer->data) == EHANGUP) {194 if (ipc_get_retval(&answer->data) == EHANGUP) { 195 195 phone_t *phone = answer->caller_phone; 196 196 mutex_lock(&phone->lock); … … 238 238 static void process_answer(call_t *call) 239 239 { 240 if (( (errno_t)ipc_get_retval(&call->data) == EHANGUP) &&240 if ((ipc_get_retval(&call->data) == EHANGUP) && 241 241 (call->flags & IPC_CALL_FORWARDED)) 242 242 ipc_set_retval(&call->data, EFORWARD); -
uspace/lib/c/generic/async/server.c
r76c8209 r7fa8589 1395 1395 async_wait_for(msg, &rc); 1396 1396 1397 return (errno_t)rc;1397 return rc; 1398 1398 } 1399 1399 … … 1640 1640 async_wait_for(msg, &rc); 1641 1641 1642 return (errno_t)rc;1642 return rc; 1643 1643 } 1644 1644 -
uspace/lib/c/generic/clipboard.c
r76c8209 r7fa8589 108 108 clip_exchange_end(exch); 109 109 110 return (errno_t)rc;110 return rc; 111 111 } else { 112 112 async_exch_t *exch = clip_exchange_begin(); … … 120 120 async_wait_for(req, &rc_orig); 121 121 if (rc_orig == EOK) 122 return (errno_t)rc;122 return rc; 123 123 else 124 return (errno_t)rc_orig;124 return rc_orig; 125 125 } 126 126 127 127 async_wait_for(req, &rc); 128 128 129 return (errno_t)rc;129 return rc; 130 130 } 131 131 } … … 153 153 154 154 if (rc != EOK) 155 return (errno_t)rc;155 return rc; 156 156 157 157 char *sbuf; … … 176 176 clip_exchange_end(exch); 177 177 178 if ( (errno_t)rc == EOVERFLOW) {178 if (rc == EOVERFLOW) { 179 179 /* 180 180 * The data in the clipboard has changed since … … 188 188 async_wait_for(req, &rc_orig); 189 189 if (rc_orig == EOK) 190 return (errno_t)rc;190 return rc; 191 191 else 192 return (errno_t)rc_orig;192 return rc_orig; 193 193 } 194 194 -
uspace/lib/c/generic/device/clock_dev.c
r76c8209 r7fa8589 67 67 68 68 async_wait_for(req, &rc); 69 return (errno_t)rc;69 return rc; 70 70 } 71 71 … … 98 98 99 99 async_wait_for(req, &rc); 100 return (errno_t)rc;100 return rc; 101 101 } 102 102 -
uspace/lib/c/generic/device/led_dev.c
r76c8209 r7fa8589 51 51 async_wait_for(req, &rc); 52 52 53 return (errno_t)rc;53 return rc; 54 54 } 55 55 -
uspace/lib/c/generic/inet/tcp.c
r76c8209 r7fa8589 240 240 return EOK; 241 241 error: 242 return (errno_t)rc;242 return rc; 243 243 } 244 244 … … 360 360 error: 361 361 free(lst); 362 return (errno_t)rc;362 return rc; 363 363 } 364 364 -
uspace/lib/c/generic/inet/udp.c
r76c8209 r7fa8589 200 200 error: 201 201 free(assoc); 202 return (errno_t)rc;202 return rc; 203 203 } 204 204 -
uspace/lib/c/generic/io/logctl.c
r76c8209 r7fa8589 85 85 return rc; 86 86 87 rc = (errno_t)async_req_1_0(exchange,87 rc = async_req_1_0(exchange, 88 88 LOGGER_CONTROL_SET_DEFAULT_LEVEL, new_level); 89 89 … … 119 119 return rc; 120 120 121 return (errno_t)reg_msg_rc;121 return reg_msg_rc; 122 122 } 123 123 … … 145 145 return rc; 146 146 147 return (errno_t)reg_msg_rc;147 return reg_msg_rc; 148 148 } 149 149 -
uspace/lib/c/generic/loader.c
r76c8209 r7fa8589 102 102 if (rc != EOK) { 103 103 async_forget(req); 104 return (errno_t)rc;104 return rc; 105 105 } 106 106 107 107 async_wait_for(req, &rc); 108 return (errno_t)rc;108 return rc; 109 109 } 110 110 … … 140 140 if (rc != EOK) { 141 141 async_forget(req); 142 return (errno_t)rc;142 return rc; 143 143 } 144 144 145 145 async_wait_for(req, &rc); 146 return (errno_t)rc;146 return rc; 147 147 } 148 148 … … 174 174 if (rc != EOK) { 175 175 async_forget(req); 176 return (errno_t)rc;176 return rc; 177 177 } 178 178 179 179 async_wait_for(req, &rc); 180 return (errno_t)rc;180 return rc; 181 181 } 182 182 … … 259 259 if (rc != EOK) { 260 260 async_forget(req); 261 return (errno_t)rc;261 return rc; 262 262 } 263 263 264 264 async_wait_for(req, &rc); 265 return (errno_t)rc;265 return rc; 266 266 } 267 267 … … 296 296 } 297 297 298 return (errno_t)rc;298 return rc; 299 299 } 300 300 -
uspace/lib/c/generic/loc.c
r76c8209 r7fa8589 314 314 errno_t loc_service_unregister(service_id_t sid) 315 315 { 316 async_exch_t *exch; 317 errno_t retval; 318 319 exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER); 320 retval = async_req_1_0(exch, LOC_SERVICE_UNREGISTER, sid); 321 loc_exchange_end(exch); 322 323 return (errno_t)retval; 316 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER); 317 errno_t rc = async_req_1_0(exch, LOC_SERVICE_UNREGISTER, sid); 318 loc_exchange_end(exch); 319 return rc; 324 320 } 325 321 -
uspace/lib/c/generic/vfs/vfs.c
r76c8209 r7fa8589 742 742 loc_null_destroy(null_id); 743 743 744 return (errno_t)rc;744 return rc; 745 745 } 746 746 … … 1188 1188 1189 1189 if (rc_orig != EOK) 1190 return (errno_t)rc_orig;1190 return rc_orig; 1191 1191 return rc; 1192 1192 } … … 1278 1278 1279 1279 if (rc_orig != EOK) 1280 return (errno_t)rc_orig;1280 return rc_orig; 1281 1281 1282 1282 if (rc != EOK) 1283 return (errno_t)rc;1283 return rc; 1284 1284 1285 1285 *handle = (int) ipc_get_arg1(&answer); -
uspace/lib/drv/generic/remote_ieee80211.c
r76c8209 r7fa8589 79 79 80 80 if (res != EOK) 81 return (errno_t)res;81 return res; 82 82 83 83 return rc; … … 144 144 145 145 if (rc_orig == EOK) 146 return (errno_t)rc;147 148 return (errno_t)rc_orig;146 return rc; 147 148 return rc_orig; 149 149 } 150 150 … … 159 159 160 160 if (rc_orig == EOK) 161 return (errno_t)rc;162 163 return (errno_t)rc_orig;161 return rc; 162 163 return rc_orig; 164 164 } 165 165 … … 182 182 rc = dhcp_discover(link_id); 183 183 184 return (errno_t)rc;184 return rc; 185 185 } 186 186 -
uspace/lib/drv/generic/remote_usbdiag.c
r76c8209 r7fa8589 89 89 async_wait_for(req, &retval); 90 90 91 return (errno_t)retval;91 return retval; 92 92 } 93 93 … … 123 123 async_wait_for(req, &retval); 124 124 125 return (errno_t)retval;125 return retval; 126 126 } 127 127 -
uspace/lib/drv/generic/remote_usbhc.c
r76c8209 r7fa8589 138 138 139 139 if (opening_request_rc) 140 return (errno_t)opening_request_rc;140 return opening_request_rc; 141 141 142 142 usb_pipe_desc_t dest; … … 174 174 async_wait_for(opening_request, &opening_request_rc); 175 175 176 return (errno_t)opening_request_rc;176 return opening_request_rc; 177 177 } 178 178 … … 223 223 *transferred = ipc_get_arg1(&call); 224 224 225 return (errno_t)opening_request_rc;225 return opening_request_rc; 226 226 } 227 227 -
uspace/lib/drv/generic/remote_usbhid.c
r76c8209 r7fa8589 182 182 /* Prefer return code of the opening request. */ 183 183 if (opening_request_rc != EOK) 184 return (errno_t)opening_request_rc;184 return opening_request_rc; 185 185 else 186 return (errno_t)data_request_rc;186 return data_request_rc; 187 187 } 188 188 189 189 if (opening_request_rc != EOK) 190 return (errno_t)opening_request_rc;190 return opening_request_rc; 191 191 192 192 size_t act_size = ipc_get_arg2(&data_request_call); … … 267 267 /* Prefer return code of the opening request. */ 268 268 if (opening_request_rc != EOK) 269 return (errno_t)opening_request_rc;269 return opening_request_rc; 270 270 else 271 return (errno_t)data_request_rc;271 return data_request_rc; 272 272 } 273 273 274 274 if (opening_request_rc != EOK) 275 return (errno_t)opening_request_rc;275 return opening_request_rc; 276 276 277 277 size_t act_size = ipc_get_arg2(&data_request_call); -
uspace/lib/usbvirt/src/ipc_hc.c
r76c8209 r7fa8589 104 104 /* Prefer the return code of the opening request. */ 105 105 if (opening_request_rc != EOK) 106 return (errno_t)opening_request_rc;106 return opening_request_rc; 107 107 else 108 return (errno_t)data_request_rc;108 return data_request_rc; 109 109 } 110 110 111 111 if (opening_request_rc != EOK) 112 return (errno_t)opening_request_rc;112 return opening_request_rc; 113 113 114 114 if (data_transferred_size != NULL) … … 174 174 async_wait_for(opening_request, &opening_request_rc); 175 175 176 return (errno_t)opening_request_rc;176 return opening_request_rc; 177 177 } 178 178 … … 241 241 /* Prefer the return code of the opening request. */ 242 242 if (opening_request_rc != EOK) 243 return (errno_t)opening_request_rc;243 return opening_request_rc; 244 244 else 245 return (errno_t)data_request_rc;245 return data_request_rc; 246 246 } 247 247 248 248 if (opening_request_rc != EOK) 249 return (errno_t)opening_request_rc;249 return opening_request_rc; 250 250 251 251 if (act_size != NULL) … … 311 311 async_wait_for(opening_request, &opening_request_rc); 312 312 313 return (errno_t)opening_request_rc;313 return opening_request_rc; 314 314 } 315 315 -
uspace/srv/fs/locfs/locfs_ops.c
r76c8209 r7fa8589 596 596 597 597 /* Do not propagate EHANGUP back to VFS. */ 598 if ( (errno_t)rc == EHANGUP)598 if (rc == EHANGUP) 599 599 rc = ENOTSUP; 600 600 … … 660 660 661 661 /* Do not propagate EHANGUP back to VFS. */ 662 if ( (errno_t)rc == EHANGUP)662 if (rc == EHANGUP) 663 663 rc = ENOTSUP; 664 664 -
uspace/srv/vfs/vfs_ops.c
r76c8209 r7fa8589 444 444 chunk->size = ipc_get_arg1(answer); 445 445 446 return (errno_t)rc;446 return rc; 447 447 } 448 448 … … 740 740 vfs_exchange_release(exch); 741 741 742 return (errno_t)rc;742 return rc; 743 743 } 744 744
Note:
See TracChangeset
for help on using the changeset viewer.