diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2012-12-07 17:11:14 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-12-07 17:11:14 -0500 |
commit | cdc87c5a30f407ed1ce43d8a22261116873d5ef1 (patch) | |
tree | fe40df4b22b8049ae6fc6a760d6f360e66491cde | |
parent | 129ff8f8d58297b04f47b5d6fad81aa2d08404e1 (diff) |
pnpacpi: fix incorrect TEST_ALPHA() test
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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/pnp/pnpacpi/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c index ec8e914f756c..767f526209e8 100644 --- a/drivers/pnp/pnpacpi/core.c +++ b/drivers/pnp/pnpacpi/core.c | |||
@@ -58,7 +58,7 @@ static inline int __init is_exclusive_device(struct acpi_device *dev) | |||
58 | if (!(('0' <= (c) && (c) <= '9') || ('A' <= (c) && (c) <= 'F'))) \ | 58 | if (!(('0' <= (c) && (c) <= '9') || ('A' <= (c) && (c) <= 'F'))) \ |
59 | return 0 | 59 | return 0 |
60 | #define TEST_ALPHA(c) \ | 60 | #define TEST_ALPHA(c) \ |
61 | if (!('@' <= (c) || (c) <= 'Z')) \ | 61 | if (!('A' <= (c) && (c) <= 'Z')) \ |
62 | return 0 | 62 | return 0 |
63 | static int __init ispnpidacpi(const char *id) | 63 | static int __init ispnpidacpi(const char *id) |
64 | { | 64 | { |