diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2010-01-21 20:56:18 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2010-01-21 20:56:18 +0000 |
commit | f154176708d42f8a4778e3cf4b55e45b4a2be545 (patch) | |
tree | 4b6b1812ecf638d285ab3b645feee1416d0f343b /compiler/aslerror.c | |
parent | deca274c44eb2d731761ba35813f64bdbdc734df (diff) |
Notes
Diffstat (limited to 'compiler/aslerror.c')
-rw-r--r-- | compiler/aslerror.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/compiler/aslerror.c b/compiler/aslerror.c index 5aa9e8c36a26..f90df3807f72 100644 --- a/compiler/aslerror.c +++ b/compiler/aslerror.c @@ -9,7 +9,7 @@ * * 1. Copyright Notice * - * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp. + * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. * All rights reserved. * * 2. License @@ -169,13 +169,7 @@ AeAddToErrorLog ( ASL_ERROR_MSG *Prev; - if (!Gbl_ErrorLog) - { - Gbl_ErrorLog = Enode; - return; - } - - /* List is sorted according to line number */ + /* If Gbl_ErrorLog is null, this is the first error node */ if (!Gbl_ErrorLog) { @@ -183,8 +177,10 @@ AeAddToErrorLog ( return; } - /* Walk error list until we find a line number greater than ours */ - + /* + * Walk error list until we find a line number greater than ours. + * List is sorted according to line number. + */ Prev = NULL; Next = Gbl_ErrorLog; |