mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
pnpacpi: fix incorrect TEST_ALPHA() test
TEST_ALPHA() is broken and always returns 0. [[email protected]: return false for '@' as well, per Bjorn] Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
129ff8f8d5
commit
cdc87c5a30
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ static inline int __init is_exclusive_device(struct acpi_device *dev)
|
|||
if (!(('0' <= (c) && (c) <= '9') || ('A' <= (c) && (c) <= 'F'))) \
|
||||
return 0
|
||||
#define TEST_ALPHA(c) \
|
||||
if (!('@' <= (c) || (c) <= 'Z')) \
|
||||
if (!('A' <= (c) && (c) <= 'Z')) \
|
||||
return 0
|
||||
static int __init ispnpidacpi(const char *id)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue