mkdos: Add missing 'else'

Fix PVS V646

Change-Id: Iddf45b1383ec8d272fb733970ba52390d3072ef2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2229
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Murai Takashi 2020-02-08 13:53:07 +09:00 committed by Stephan Aßmus
parent 77402344df
commit d029e65f6f

View File

@ -322,7 +322,7 @@ status_t Initialize(int fatbits, const char *device, const char *label, bool nop
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;