Replace all le64 usage of the '!=' operation with "!le64_eq(...)".
parent
7a88d7821e
commit
d61f8615d9
|
@ -65,7 +65,7 @@ BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR *b)
|
|||
ntfs_log_debug("Beginning bootsector check.\n");
|
||||
|
||||
ntfs_log_debug("Checking OEMid, NTFS signature.\n");
|
||||
if (b->oem_id != const_cpu_to_le64(0x202020205346544eULL)) { /* "NTFS " */
|
||||
if (!le64_eq(b->oem_id, const_cpu_to_le64(0x202020205346544eULL))) { /* "NTFS " */
|
||||
ntfs_log_error("NTFS signature is missing.\n");
|
||||
goto not_ntfs;
|
||||
}
|
||||
|
|
|
@ -209,7 +209,7 @@ static BOOL verify_boot_sector(struct ntfs_device *dev, ntfs_volume *rawvol)
|
|||
(buf[2]!=0x90)) {
|
||||
check_failed("Boot sector: Bad jump.\n");
|
||||
}
|
||||
if (ntfs_boot->oem_id != magicNTFS) {
|
||||
if (!le64_eq(ntfs_boot->oem_id, magicNTFS)) {
|
||||
check_failed("Boot sector: Bad NTFS magic.\n");
|
||||
}
|
||||
bytes_per_sector = le16_to_cpu(ntfs_boot->bpb.bytes_per_sector);
|
||||
|
|
|
@ -940,7 +940,7 @@ static void ntfs_fuse_readlink(fuse_req_t req, fuse_ino_t ino)
|
|||
goto exit;
|
||||
}
|
||||
/* Sanity check. */
|
||||
if (intx_file->magic != INTX_SYMBOLIC_LINK) {
|
||||
if (!le64_eq(intx_file->magic, INTX_SYMBOLIC_LINK)) {
|
||||
res = -EINVAL;
|
||||
goto exit;
|
||||
}
|
||||
|
|
|
@ -972,7 +972,7 @@ static int ntfs_fuse_readlink(const char *org_path, char *buf, size_t buf_size)
|
|||
goto exit;
|
||||
}
|
||||
/* Sanity check. */
|
||||
if (intx_file->magic != INTX_SYMBOLIC_LINK) {
|
||||
if (!le64_eq(intx_file->magic, INTX_SYMBOLIC_LINK)) {
|
||||
res = -EINVAL;
|
||||
goto exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue