diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2012-10-19 18:47:57 +0000 | 
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2012-10-19 18:47:57 +0000 | 
| commit | 31aa864e8c068201d58aad3a8f82ddb51df11015 (patch) | |
| tree | 5e268c18ae0fa3ec73e13e2af60a3be57d8393ec /source/compiler/asllookup.c | |
| parent | ebef5c959a0ea58fa05c4a5a80bb93104780bf87 (diff) | |
Notes
Diffstat (limited to 'source/compiler/asllookup.c')
| -rw-r--r-- | source/compiler/asllookup.c | 36 | 
1 files changed, 17 insertions, 19 deletions
| diff --git a/source/compiler/asllookup.c b/source/compiler/asllookup.c index 6df64366b3bf..8bd93559bc51 100644 --- a/source/compiler/asllookup.c +++ b/source/compiler/asllookup.c @@ -423,7 +423,7 @@ LsDoOnePathname (   * RETURN:      Status   *   * DESCRIPTION: Walk the namespace an display information about each node - *              in the tree.  Information is written to the optional + *              in the tree. Information is written to the optional   *              namespace output file.   *   ******************************************************************************/ @@ -691,8 +691,8 @@ LkFindUnreferencedObjects (   * RETURN:      Status   *   * DESCRIPTION: Perform a cross reference check of the parse tree against the - *              namespace.  Every named referenced within the parse tree - *              should be get resolved with a namespace lookup.  If not, the + *              namespace. Every named referenced within the parse tree + *              should be get resolved with a namespace lookup. If not, the   *              original reference in the ASL code is invalid -- i.e., refers   *              to a non-existent object.   * @@ -718,14 +718,14 @@ LkCrossReferenceNamespace (      WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL);      if (!WalkState)      { -        return AE_NO_MEMORY; +        return (AE_NO_MEMORY);      }      /* Walk the entire parse tree */      TrWalkParseTree (RootNode, ASL_WALK_VISIT_TWICE, LkNamespaceLocateBegin,                          LkNamespaceLocateEnd, WalkState); -    return AE_OK; +    return (AE_OK);  } @@ -759,7 +759,7 @@ LkCheckFieldRange (      /* -     * Check each field unit against the region size.  The entire +     * Check each field unit against the region size. The entire       * field unit (start offset plus length) must fit within the       * region.       */ @@ -775,7 +775,7 @@ LkCheckFieldRange (      /*       * Now check that the field plus AccessWidth doesn't go beyond -     * the end-of-region.  Assumes AccessBitWidth is a power of 2 +     * the end-of-region. Assumes AccessBitWidth is a power of 2       */      FieldEndBitOffset = ACPI_ROUND_UP (FieldEndBitOffset, AccessBitWidth); @@ -795,13 +795,13 @@ LkCheckFieldRange (   *   * RETURN:      Status   * - * DESCRIPTION: Descending callback used during cross-reference.  For named + * DESCRIPTION: Descending callback used during cross-reference. For named   *              object references, attempt to locate the name in the   *              namespace.   *   * NOTE: ASL references to named fields within resource descriptors are - *       resolved to integer values here.  Therefore, this step is an - *       important part of the code generation.  We don't know that the + *       resolved to integer values here. Therefore, this step is an + *       important part of the code generation. We don't know that the   *       name refers to a resource descriptor until now.   *   ******************************************************************************/ @@ -835,7 +835,7 @@ LkNamespaceLocateBegin (      /*       * If this node is the actual declaration of a name       * [such as the XXXX name in "Method (XXXX)"], -     * we are not interested in it here.  We only care about names that are +     * we are not interested in it here. We only care about names that are       * references to other objects within the namespace and the parent objects       * of name declarations       */ @@ -921,7 +921,7 @@ LkNamespaceLocateBegin (          "Type=%s\n", AcpiUtGetTypeName (ObjectType)));      /* -     * Lookup the name in the namespace.  Name must exist at this point, or it +     * Lookup the name in the namespace. Name must exist at this point, or it       * is an invalid reference.       *       * The namespace is also used as a lookup table for references to resource @@ -1226,9 +1226,9 @@ LkNamespaceLocateBegin (               (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_BANKFIELD)))      {          /* -         * Offset checking for fields.  If the parent operation region has a +         * Offset checking for fields. If the parent operation region has a           * constant length (known at compile time), we can check fields -         * defined in that region against the region length.  This will catch +         * defined in that region against the region length. This will catch           * fields and field units that cannot possibly fit within the region.           *           * Note: Index fields do not directly reference an operation region, @@ -1238,7 +1238,7 @@ LkNamespaceLocateBegin (          {              /*               * This is the first child of the field node, which is -             * the name of the region.  Get the parse node for the +             * the name of the region. Get the parse node for the               * region -- which contains the length of the region.               */              OwningOp = Node->Op; @@ -1315,7 +1315,7 @@ LkNamespaceLocateBegin (          else          {              /* -             * This is one element of the field list.  Check to make sure +             * This is one element of the field list. Check to make sure               * that it does not go beyond the end of the parent operation region.               *               * In the code below: @@ -1348,7 +1348,7 @@ LkNamespaceLocateBegin (   *   * RETURN:      Status   * - * DESCRIPTION: Ascending callback used during cross reference.  We only + * DESCRIPTION: Ascending callback used during cross reference. We only   *              need to worry about scope management here.   *   ******************************************************************************/ @@ -1397,5 +1397,3 @@ LkNamespaceLocateEnd (      return (AE_OK);  } - - | 
