Skip to content

Commit 7ecd171

Browse files
Revise function vfs_preprocess parameter error
Change input parameter name from 'vblk' to `vfs`.
1 parent 50870fb commit 7ecd171

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtio-fs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ static void virtio_fs_set_fail(virtio_fs_state_t *vfs)
5555
vfs->InterruptStatus |= VIRTIO_INT__CONF_CHANGE;
5656
}
5757

58-
static inline uint32_t vfs_preprocess(virtio_fs_state_t *vblk, uint32_t addr)
58+
static inline uint32_t vfs_preprocess(virtio_fs_state_t *vfs, uint32_t addr)
5959
{
6060
if ((addr >= RAM_SIZE) || (addr & 0b11))
61-
return virtio_fs_set_fail(vblk), 0;
61+
return virtio_fs_set_fail(vfs), 0;
6262

6363
return addr >> 2;
6464
}

0 commit comments

Comments
 (0)