zephyr/subsys
Guennadi Liakhovetski a88facacaa llext: clarify the use of loop variables, simplify code
Several cosmetic changes with no change in functionality:

The pos variable in multiple functions is used as a loop variable -
it's initialised before the loop starts and then it's incremented for
each loop iteration. Move it to the loop header for readability.

"return ret" is clearer than "goto out" where the "out" label does
nothing but "out: return ret" because one sees immediately that the
function is terminated at that location with no further actions
without the need to check the "out" label.

k_heap_free(heap, NULL) is valid, no need to check the address to be
freed for NULL.

Object counters can be simple (unsigned) integers, no need to make
them size_t or elf_word.

"return 0" is simpler than "return ret" because it shows the return
value immediately without the need to check what it can be at that
location.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2023-11-15 14:17:08 +00:00
..
bindesc bindesc: Use UTC time by default and comply with ISO-8601 2023-10-06 13:37:02 +03:00
bluetooth Bluetooth: audio: ascs: Retry ASE state notifications on error 2023-11-15 10:03:07 +01:00
canbus drivers: can: unify spelling of CAN Flexible Data-rate abbreviation 2023-11-01 11:17:17 +00:00
console
debug debug: gdbstub: Add dependency to UART runtime configuration 2023-11-15 10:02:18 +01:00
demand_paging kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
dfu mgmt/MCUmgr/grp/img: Add support for three image configuration 2023-09-22 15:13:31 +02:00
disk
dsp
emul
fb
fs fs: fix missing semicolon in fuse_fs_access.c 2023-10-18 15:50:50 +03:00
input input: longpress: use POST_KERNEL level 2023-09-15 16:04:19 +02:00
ipc ipc: add dynamically allocated buffers to icmsg 2023-11-13 11:11:43 +01:00
jwt random: Rename random header 2023-10-10 14:23:50 +03:00
llext llext: clarify the use of loop variables, simplify code 2023-11-15 14:17:08 +00:00
logging logging: backend: uart: compile the uart_dev pointer conditionally 2023-11-14 12:26:48 -05:00
lorawan lorawan: use callback function signature typedefs 2023-11-13 09:53:32 +01:00
mem_mgmt dt: Make zephyr,memory-attr a capabilities bitmask 2023-09-15 12:46:54 +02:00
mgmt mgmt: osdp: Add dependency to UART runtime configuration 2023-11-15 10:02:18 +01:00
modbus modbus: Add dependency to UART runtime configuration 2023-11-15 10:02:18 +01:00
modem modem: Add experimental tag 2023-11-03 09:56:30 +01:00
net net: buf: Preserve buffer pointer in destroy callback 2023-11-15 10:02:55 +01:00
pm pm: policy: add check for device busy in policy 2023-09-15 14:51:50 -04:00
portability portability: fix thread function signatures 2023-10-30 12:24:34 +01:00
random syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
retention retention: blinfo: Fix issue with crash writing to keys 2023-10-12 11:53:21 +01:00
rtio syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
sd sd: add SDIO subsystem 2023-11-06 19:01:08 -05:00
sensing
settings settings: shell: Add value type and allow for strings to be used 2023-09-22 14:02:02 +02:00
shell shell: uart: Rework Kconfig dependencies 2023-11-14 16:09:08 +02:00
sip_svc subsystem: sip_svc: Reduce the max timeout to 1 second. 2023-09-15 09:26:49 +02:00
stats
storage
task_wdt task_wdt: fix race condition for task_wdt_add function 2023-10-09 16:10:00 +03:00
testsuite ztest: Add comfort functions for non-zero return codes 2023-11-04 07:39:46 -04:00
timing
tracing kernel: rename z_current_get() to k_sched_current_thread_query() 2023-09-28 16:15:46 +02:00
usb usb: device: cdc_acm: Always buffer poll out data if possible 2023-11-13 09:43:46 +01:00
zbus zbus: Fix parameter order of net buf pool fixed define 2023-11-13 09:49:49 +01:00
CMakeLists.txt drivers, subsys: sort the lists again, mark the blocks for checking 2023-11-13 09:41:05 +01:00
Kconfig drivers, subsys: sort the lists again, mark the blocks for checking 2023-11-13 09:41:05 +01:00