mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 16:19:22 +00:00
* grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
Saves 5 bytes on compressed image.
This commit is contained in:
1 parent
64a6c791e1
commit
067e6ae74d
2 files changed
+7
-1
No files matched your search
@@ -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
|
||||||
|
|||||||
+1
-1
@@ -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++);
|
||||||
|
|||||||
Reference in new issue
Block a user