• R
    ACPI: EC: Simplify error handling in advance_transaction() · 902675fa
    Rafael J. Wysocki 提交于
    Notice that the value of t in advance_transaction() does not change
    after its initialization and:
    
     - Initialize t upfront (and rearrange the definitions of local
       variables while at it).
    
     - Check it against NULL in a block executed when it is NULL.
    
     - Skip error handling for t == NULL, because a valid pointer value
       of t is required for the error handling.
    
     - Drop the (now redundant) check of t against NULL from the error
       handling block and reduce the indentation level in there.
    
    No intentional functional impact.
    Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
    902675fa
ec.c 57.1 KB