Skip to content

Commit 67d649d

Browse files
mib1-nordicnordicjm
authored andcommitted
[nrf fromlist] drivers: flashdisk: fix value returned from disk_flash_access_write
Change the value returned from disk_flash_access_write to return the return code instead of a hardcoded zero. Upstream PR #: 95468 Signed-off-by: Michał Bainczyk <[email protected]>
1 parent 60524d9 commit 67d649d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/disk/flashdisk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static int disk_flash_access_write(struct disk_info *disk, const uint8_t *buff,
424424
end:
425425
k_mutex_unlock(&ctx->lock);
426426

427-
return 0;
427+
return rc;
428428
}
429429

430430
static int disk_flash_access_ioctl(struct disk_info *disk, uint8_t cmd, void *buff)

0 commit comments

Comments
 (0)