mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
efi: libstub: Use local strncmp() implementation unconditionally
In preparation for moving the EFI stub functionality into the zboot decompressor, switch to the stub's implementation of strncmp() unconditionally. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
@@ -35,7 +35,6 @@ char *strstr(const char *s1, const char *s2)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef __HAVE_ARCH_STRNCMP
|
||||
/**
|
||||
* strncmp - Compare two length-limited strings
|
||||
* @cs: One string
|
||||
@@ -57,7 +56,6 @@ int strncmp(const char *cs, const char *ct, size_t count)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Works only for digits and letters, but small and fast */
|
||||
#define TOLOWER(x) ((x) | 0x20)
|
||||
|
||||
Reference in New Issue
Block a user