From bbbf0b857c612ea2001fab885b3568d66da0dd82 Mon Sep 17 00:00:00 2001 From: wangchen <253227059@qq.com> Date: Tue, 29 Nov 2022 09:06:04 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=91=E5=8D=95=20vfs=20=E5=88=86?= =?UTF-8?q?=E5=8C=BA=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9=20=E5=88=B0=20101?= =?UTF-8?q?8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 方案描述: 1,删除fat分区时调用的adddevice的动作 fix #I63QXK 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 99d697ab..ac918fd7 100644 --- a/components/fs/vfs/vfs_partition.c +++ b/components/fs/vfs/vfs_partition.c @@ -148,9 +148,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);