From: TaeJun Kwon Date: Mon, 21 Aug 2017 06:56:16 +0000 (+0900) Subject: apply coding rule [Description] N/A [Module] FS [Board] all [Verification] N/A [Refer... X-Git-Tag: 1.1_Public_Release~255^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7840cd52e37f1f16f7b5c0b888fc659599260d9b;p=rtos%2Ftinyara.git apply coding rule [Description] N/A [Module] FS [Board] all [Verification] N/A [Reference] N/A [Author] tj80.kwon --- diff --git a/os/fs/driver/mtd/smart.c b/os/fs/driver/mtd/smart.c index 66ec1b8..fc01d22 100644 --- a/os/fs/driver/mtd/smart.c +++ b/os/fs/driver/mtd/smart.c @@ -3607,7 +3607,7 @@ retry: } } -error : +error: if (physicalsector == 0xFFFF) { if (bitflipped) { fdbg("retry allocation \n"); diff --git a/os/fs/smartfs/smartfs_utils.c b/os/fs/smartfs/smartfs_utils.c index 4ad3e34..5dd2de8 100644 --- a/os/fs/smartfs/smartfs_utils.c +++ b/os/fs/smartfs/smartfs_utils.c @@ -113,15 +113,15 @@ extern size_t smart_sect_header_size; #ifdef CONFIG_SMARTFS_ALIGNED_ACCESS #define ENTRY_VALID(e) ((smartfs_rdle16(&(e)->flags) & SMARTFS_DIRENT_EMPTY) != \ - (SMARTFS_ERASEDSTATE_16BIT & SMARTFS_DIRENT_EMPTY)) && \ - ((smartfs_rdle16(&(e)->flags) & SMARTFS_DIRENT_ACTIVE) == \ - (SMARTFS_ERASEDSTATE_16BIT & SMARTFS_DIRENT_ACTIVE)) + (SMARTFS_ERASEDSTATE_16BIT & SMARTFS_DIRENT_EMPTY)) && \ + ((smartfs_rdle16(&(e)->flags) & SMARTFS_DIRENT_ACTIVE) == \ + (SMARTFS_ERASEDSTATE_16BIT & SMARTFS_DIRENT_ACTIVE)) #else #define ENTRY_VALID(e) (((e)->flags & SMARTFS_DIRENT_EMPTY) != \ - (SMARTFS_ERASEDSTATE_16BIT & SMARTFS_DIRENT_EMPTY)) && \ - (((e)->flags & SMARTFS_DIRENT_ACTIVE) == \ - (SMARTFS_ERASEDSTATE_16BIT & SMARTFS_DIRENT_ACTIVE)) + (SMARTFS_ERASEDSTATE_16BIT & SMARTFS_DIRENT_EMPTY)) && \ + (((e)->flags & SMARTFS_DIRENT_ACTIVE) == \ + (SMARTFS_ERASEDSTATE_16BIT & SMARTFS_DIRENT_ACTIVE)) #endif