samples/subsys/usb/mass: Add fs_dir_t type variable initialization
The commit adds initialization of fs_dir_t variables in preparation for fs_opendir function change that will require fs_dir_t object, passed to the function, to be initialized before first usage. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
parent
7a4940d270
commit
c7a626fc6c
1 changed files with 3 additions and 1 deletions
|
@ -84,10 +84,12 @@ static int mount_app_fs(struct fs_mount_t *mnt)
|
|||
static void setup_disk(void)
|
||||
{
|
||||
struct fs_mount_t *mp = &fs_mnt;
|
||||
struct fs_dir_t dir = { 0 };
|
||||
struct fs_dir_t dir;
|
||||
struct fs_statvfs sbuf;
|
||||
int rc;
|
||||
|
||||
fs_dir_t_init(&dir);
|
||||
|
||||
if (IS_ENABLED(CONFIG_DISK_ACCESS_FLASH)) {
|
||||
rc = setup_flash(mp);
|
||||
if (rc < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue