* grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
Saves 5 bytes on compressed image.
This commit is contained in:
parent
64a6c791e1
commit
067e6ae74d
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
|
* grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
|
||||||
|
|
|
@ -907,7 +907,7 @@ grub_ntfs_mount (grub_disk_t disk)
|
||||||
spc = (((grub_uint32_t) bpb.sectors_per_cluster
|
spc = (((grub_uint32_t) bpb.sectors_per_cluster
|
||||||
* (grub_uint32_t) grub_le_to_cpu16 (bpb.bytes_per_sector))
|
* (grub_uint32_t) grub_le_to_cpu16 (bpb.bytes_per_sector))
|
||||||
>> GRUB_NTFS_BLK_SHR);
|
>> GRUB_NTFS_BLK_SHR);
|
||||||
if (spc == 0 || (spc & (spc - 1)))
|
if (spc == 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
for (data->log_spc = 0; (1U << data->log_spc) < spc; data->log_spc++);
|
for (data->log_spc = 0; (1U << data->log_spc) < spc; data->log_spc++);
|
||||||
|
|
Loading…
Reference in a new issue