NuttX: nxstyle fixes

nxstyle fixes to pass CI.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea
2021-04-10 09:23:45 +02:00
committed by Xiang Xiao
parent eac1d28aae
commit 08612337f6
2 changed files with 84 additions and 73 deletions
+5 -3
View File
@@ -683,13 +683,15 @@ int smartfs_finddirentry(struct smartfs_mountpt_s *fs,
if ((smartfs_rdle16(&entry->flags) &
SMARTFS_DIRENT_TYPE) ==
SMARTFS_DIRENT_TYPE_FILE)
{
dirsector =
smartfs_rdle16(&entry->firstsector);
#else
if ((entry->flags & SMARTFS_DIRENT_TYPE) ==
SMARTFS_DIRENT_TYPE_FILE)
#endif
{
#ifdef CONFIG_SMARTFS_ALIGNED_ACCESS
dirsector =
smartfs_rdle16(&entry->firstsector);
#else
dirsector = entry->firstsector;
#endif
readwrite.count =