Fix open() a block device with CONFIG_DISABLE_PSEUDOFS_OPERATIONS=y

This commit is contained in:
Masayuki Ishikawa
2017-03-01 13:32:46 +09:00
parent b118fb4387
commit e239961be8
4 changed files with 4 additions and 10 deletions
+1 -2
View File
@@ -140,8 +140,7 @@ int open(const char *path, int oflags, ...)
inode = desc.node;
DEBUGASSERT(inode != NULL);
#if !defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS) && \
!defined(CONFIG_DISABLE_MOUNTPOINT)
#if !defined(CONFIG_DISABLE_MOUNTPOINT)
/* If the inode is block driver, then we may return a character driver
* proxy for the block driver. block_proxy() will instantiate a BCH
* character driver wrapper around the block driver, open(), then