Skip to content

Commit 3b60dec

Browse files
kartbennashif
authored andcommitted
bindesc: fix typo in errno (ENONET->ENOENT)
Fix typo in errno which isn't caught when building since ENONET is also a valid code, despite not being defined (nor allowed?) in Zephyr proper. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent ba56cd1 commit 3b60dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bindesc/bindesc_read.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int bindesc_open_ram(struct bindesc_handle *handle, const uint8_t *address, size
118118

119119
if (*(uint64_t *)address != BINDESC_MAGIC) {
120120
LOG_ERR("Magic not found in given address");
121-
return -ENONET;
121+
return -ENOENT;
122122
}
123123

124124
handle->address = address;

0 commit comments

Comments
 (0)