• Anthony Zhou's avatar
    Tegra: common: fix defects flagged by MISRA scan · 4c994002
    Anthony Zhou authored
    
    
    Macro assert(e) request 'e' is a bool type, if useing other
    type, MISRA report a "The Essential Type Model" violation,
    Add a judgement to fix the defects, if 'e' is not bool type.
    
    Remove unused code [Rule 2.5]
    Fix the essential type model violation [Rule 10.6, 10.7]
    Use local parameter to raplace function parameter [Rule 17.8]
    
    Change-Id: Ifce932addbb0a4b063ef6b38349d886c051d81c0
    Signed-off-by: default avatarAnthony Zhou <anzhou@nvidia.com>
    4c994002
tegra_sip_calls.c 5.04 KB