From 97a638bc1cc19db9226ef42514e330313dd9a7de Mon Sep 17 00:00:00 2001 From: wangchen <253227059@qq.com> Date: Mon, 28 Nov 2022 03:53:54 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20vfs=20=E5=88=86=E5=8C=BA=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 方案描述: 1,删除fat分区时调用的adddevice的动作 2,修改格式化的判断逻辑 fix #I63FDV Signed-off-by: wangchen --- components/fs/vfs/vfs_partition.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/fs/vfs/vfs_partition.c b/components/fs/vfs/vfs_partition.c index c4c818f7..467b904e 100644 --- a/components/fs/vfs/vfs_partition.c +++ b/components/fs/vfs/vfs_partition.c @@ -143,9 +143,7 @@ int LOS_DiskPartition(const char *dev, const char *fsType, int *lengthArray, int if ((fMap != NULL) && (fMap->fsMgt != NULL) && (fMap->fsMgt->fdisk != NULL)) { ret = fMap->fsMgt->fdisk(dev, lengthArray, partNum); - if (ret == (int)LOS_NOK) { - return ret; - } + return ret; } ret = AddDevice(dev, fsType, lengthArray, addrArray, partNum);