mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-19 10:31:59 +00:00
magiskboot: clean up remaining unneeded ELF detection bits
- default for no format match is UNSUPP_RET (unsupported) so there is no needed to explicitly detect ELF still
This commit is contained in:
@@ -27,10 +27,6 @@ format_t check_fmt(const void *buf, size_t len) {
|
||||
return CHROMEOS;
|
||||
} else if (MATCH(BOOT_MAGIC)) {
|
||||
return AOSP;
|
||||
} else if (MATCH(ELF32_MAGIC)) {
|
||||
return ELF32;
|
||||
} else if (MATCH(ELF64_MAGIC)) {
|
||||
return ELF64;
|
||||
} else if (MATCH(GZIP1_MAGIC) || MATCH(GZIP2_MAGIC)) {
|
||||
return GZIP;
|
||||
} else if (MATCH(LZOP_MAGIC)) {
|
||||
|
Reference in New Issue
Block a user