From: Heesub Shin Date: Mon, 20 Mar 2017 06:32:26 +0000 (+0900) Subject: fs/smartfs: remove unnecessary #ifdef X-Git-Tag: 1.1_Public_Release~614^2~371 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d463065c261f4e2a364db7989654e195007df821;p=rtos%2Ftinyara.git fs/smartfs: remove unnecessary #ifdef Change-Id: I1d38ea9161a5878bd3041fa66d77743d54983f9c Signed-off-by: Heesub Shin --- diff --git a/os/fs/smartfs/smartfs_mksmartfs.c b/os/fs/smartfs/smartfs_mksmartfs.c index 7f13baa..f86ba44 100644 --- a/os/fs/smartfs/smartfs_mksmartfs.c +++ b/os/fs/smartfs/smartfs_mksmartfs.c @@ -118,15 +118,13 @@ int mksmartfs(FAR const char *pathname, bool format) bool is_smart; uint8_t type; struct smart_read_write_s request; -#if (CONFIG_MTD && CONFIG_MTD_SMART) + if (format) { is_smart = false; } else { is_smart = smart_get_format_status(); } -#else - is_smart = false; -#endif + /* Find the inode of the block driver indentified by 'source' */ ret = open_blockdriver(pathname, 0, &inode);