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);