fs/smartfs: remove unnecessary #ifdef
authorHeesub Shin <heesub.shin@samsung.com>
Mon, 20 Mar 2017 06:32:26 +0000 (15:32 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Mon, 17 Apr 2017 09:58:42 +0000 (18:58 +0900)
Change-Id: I1d38ea9161a5878bd3041fa66d77743d54983f9c
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
os/fs/smartfs/smartfs_mksmartfs.c

index 7f13baa..f86ba44 100644 (file)
@@ -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);