* grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.

Saves 5 bytes on compressed image.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-21 13:14:38 +02:00
parent 64a6c791e1
commit 067e6ae74d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
Saves 5 bytes on compressed image.
2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate

View File

@ -907,7 +907,7 @@ grub_ntfs_mount (grub_disk_t disk)
spc = (((grub_uint32_t) bpb.sectors_per_cluster
* (grub_uint32_t) grub_le_to_cpu16 (bpb.bytes_per_sector))
>> GRUB_NTFS_BLK_SHR);
if (spc == 0 || (spc & (spc - 1)))
if (spc == 0)
goto fail;
for (data->log_spc = 0; (1U << data->log_spc) < spc; data->log_spc++);