• Anthony Zhou's avatar
    Tegra194: fix defects flagged by MISRA scan · b6533b56
    Anthony Zhou authored
    
    
    Main fixes:
    
    Fix invalid use of function pointer [Rule 1.3]
    
    Added explicit casts (e.g. 0U) to integers in order for them to be
    compatible with whatever operation they're used in [Rule 10.1]
    
    convert object type to match the type of function parameters
    [Rule 10.3]
    
    Force operands of an operator to the same type category [Rule 10.4]
    
    Fix implicit widening of composite assignment [Rule 10.6]
    
    Fixed if statement conditional to be essentially boolean [Rule 14.4]
    
    Added curly braces ({}) around if statements in order to
    make them compound [Rule 15.6]
    
    Voided non c-library functions whose return types are not used
    [Rule 17.7]
    
    Change-Id: I65a2b33e59aebb7746bd31544c79d57c3d5678c5
    Signed-off-by: default avatarAnthony Zhou <anzhou@nvidia.com>
    b6533b56
plat_memctrl.c 30.1 KB