fat: Add missing 'else'

Fix PVS V646

Change-Id: Ie4635f4c29e22d8f78abcb0cf9f043108d3a3405
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2228
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Murai Takashi 2020-02-08 13:52:56 +09:00 committed by waddlesplash
parent 2e37c88d2b
commit 438da76623

View File

@ -297,7 +297,7 @@ dosfs_initialize(int fd, partition_id partitionID, const char* name,
sectorPerCluster = 2;
if (size <= 4182016LL) // smaller than fat32 must fail
sectorPerCluster = 0;
} if (fatbits == 32) {
} else if (fatbits == 32) {
sectorPerCluster = 64; // default is 32k clusters
if (size <= (32 * 1024 * 1024 * 1024LL)) // up to 32GB, use 16k clusters
sectorPerCluster = 32;