mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
pnpacpi: fix incorrect TEST_ALPHA() test
commit cdc87c5a30
upstream.
TEST_ALPHA() is broken and always returns 0.
[akpm@linux-foundation.org: return false for '@' as well, per Bjorn]
Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6afc22ba72
commit
745a4b9a8b
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'))) \
|
if (!(('0' <= (c) && (c) <= '9') || ('A' <= (c) && (c) <= 'F'))) \
|
||||||
return 0
|
return 0
|
||||||
#define TEST_ALPHA(c) \
|
#define TEST_ALPHA(c) \
|
||||||
if (!('@' <= (c) || (c) <= 'Z')) \
|
if (!('A' <= (c) && (c) <= 'Z')) \
|
||||||
return 0
|
return 0
|
||||||
static int __init ispnpidacpi(const char *id)
|
static int __init ispnpidacpi(const char *id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue