summaryrefslogtreecommitdiff
path: root/source/compiler/aslanalyze.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2015-11-25 21:04:42 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2015-11-25 21:04:42 +0000
commitb9098066cd6284319bca922f13e59517f774a103 (patch)
treef01fd6c9053cb01ed84c00cb42ee789adafceaf5 /source/compiler/aslanalyze.c
parent1e24cf365bc9c8df179b145c90d52852724e54ee (diff)
Notes
Diffstat (limited to 'source/compiler/aslanalyze.c')
-rw-r--r--source/compiler/aslanalyze.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/source/compiler/aslanalyze.c b/source/compiler/aslanalyze.c
index 45c4431abb74..fd717639c390 100644
--- a/source/compiler/aslanalyze.c
+++ b/source/compiler/aslanalyze.c
@@ -139,8 +139,7 @@ AnCheckId (
Length = strlen (Op->Asl.Value.String);
if (!Length)
{
- AslError (ASL_ERROR, ASL_MSG_NULL_STRING,
- Op, NULL);
+ AslError (ASL_ERROR, ASL_MSG_NULL_STRING, Op, NULL);
return;
}
@@ -191,7 +190,7 @@ AnCheckId (
return;
}
- /* _HID Length is valid (7 or 8), now check the prefix (first 3 or 4 chars) */
+ /* _HID Length is valid (7 or 8), now check prefix (first 3 or 4 chars) */
if (Length == 7)
{
@@ -231,8 +230,8 @@ AnCheckId (
{
if (!isxdigit ((int) Op->Asl.Value.String[i]))
{
- AslError (ASL_ERROR, ASL_MSG_HID_SUFFIX,
- Op, &Op->Asl.Value.String[i]);
+ AslError (ASL_ERROR, ASL_MSG_HID_SUFFIX,
+ Op, &Op->Asl.Value.String[i]);
break;
}
}
@@ -323,7 +322,8 @@ AnCheckMethodReturnValue (
{
/* Method SOMETIMES returns a value, SOMETIMES not */
- AslError (ASL_WARNING, ASL_MSG_SOME_NO_RETVAL, Op, Op->Asl.ExternalName);
+ AslError (ASL_WARNING, ASL_MSG_SOME_NO_RETVAL,
+ Op, Op->Asl.ExternalName);
}
else if (!(ThisNodeBtype & RequiredBtypes))
{
@@ -400,12 +400,13 @@ AnIsResultUsed (
{
return (TRUE);
}
+
return (FALSE);
/* Not used if one of these is the parent */
case PARSEOP_METHOD:
- case PARSEOP_DEFINITIONBLOCK:
+ case PARSEOP_DEFINITION_BLOCK:
case PARSEOP_ELSE:
return (FALSE);