diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index a9e4241ac220ddcd646f465f6dac81b09c50e4a8..b18bdfaadd57041a7732a85e8cfcf9e1210e9c25 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -313,7 +313,7 @@ int dfs_file_flush(struct dfs_fd *fd) * this function will seek the offset for specified file descriptor. * * @param fd the file descriptor. - * @param offset the offset to be seeked. + * @param offset the offset to be sought. * * @return the current position after seek. */ diff --git a/components/dfs/src/dfs_fs.c b/components/dfs/src/dfs_fs.c index e8110e408f1b02386fb5fb5b8145342739548689..7d88fac67ad794ca0990a2c4eb363bae022e196b 100644 --- a/components/dfs/src/dfs_fs.c +++ b/components/dfs/src/dfs_fs.c @@ -436,7 +436,7 @@ int dfs_statfs(const char *path, struct statfs *buffer) struct dfs_filesystem *fs; fs = dfs_filesystem_lookup(path); - if (fs != NULL) + if (fs != RT_NULL) { if (fs->ops->statfs != RT_NULL) return fs->ops->statfs(fs, buffer);