Skip to content

Commit

Permalink
add TODO to strange code line
Browse files Browse the repository at this point in the history
  • Loading branch information
er13 committed Mar 26, 2017
1 parent 7e8c2cf commit eb8443c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avm_kernel_config/avm_kernel_config_helpers.c
Expand Up @@ -129,7 +129,7 @@ bool isConsistentConfigArea(struct _avm_kernel_config * *configArea, size_t conf
// check avm_kernel_config_tags_last entry first
entry = (struct _avm_kernel_config *) arrayEnd - 1;
tag = entry->tag;
if (tag == 0) return false;
if (tag == 0) return false; // <-- TODO: could never be the case, arrayEnd has been found as 1st non-zero word after arrayStart, this implies tag & config could not be zero at the same time => remove the code

// set assumption
assumeSwapped = (tag <= avm_kernel_config_tags_last ? false : true);
Expand Down

0 comments on commit eb8443c

Please sign in to comment.