clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18743 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -570,7 +570,6 @@ dosfs_identify_partition(int fd, partition_data *partition, void **_cookie)
|
|||||||
char name[12];
|
char name[12];
|
||||||
identify_cookie *cookie;
|
identify_cookie *cookie;
|
||||||
|
|
||||||
|
|
||||||
// read in the boot sector
|
// read in the boot sector
|
||||||
if (read_pos(fd, 0, (void*)buf, 512) != 512) {
|
if (read_pos(fd, 0, (void*)buf, 512) != 512) {
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
@@ -580,7 +579,6 @@ dosfs_identify_partition(int fd, partition_data *partition, void **_cookie)
|
|||||||
// behavior
|
// behavior
|
||||||
if (((buf[0x1fe] != 0x55) || (buf[0x1ff] != 0xaa)) && (buf[0x15] == 0xf8))
|
if (((buf[0x1fe] != 0x55) || (buf[0x1ff] != 0xaa)) && (buf[0x15] == 0xf8))
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
|
|
||||||
if (!memcmp(buf+3, "NTFS ", 8) || !memcmp(buf+3, "HPFS ", 8)) {
|
if (!memcmp(buf+3, "NTFS ", 8) || !memcmp(buf+3, "HPFS ", 8)) {
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user