• Sandrine Bailleux's avatar
    refactor(measured boot): revisit error handling (1/3) · ddb07a56
    Sandrine Bailleux authored
    
    
     - In event_log_init():
    
       Throughout the function, we are incrementing a pointer by some fixed
       amounts of bytes (corresponding to the size of some data structure or
       to some constant number of bytes), there is no variable-size
       increments in the picture. Thus it seems pointless to verify that the
       pointer has indeed been incremented by this fixed amount of bytes
       afterwards.
    
       For this reason, remove these checks altogether. As a result, the
       start_ptr local variable is now unused so remove it as well.
    
    Change-Id: I612e2278cd3a63d1417427e45d81e285503f5efe
    Signed-off-by: default avatarSandrine Bailleux <sandrine.bailleux@arm.com>
    ddb07a56
event_log.c 9.59 KB