Commit 120b7182 authored by Sherry Zhang's avatar Sherry Zhang Committed by Tamas Ban
Browse files

FIH: Fix possible static check error caused by FIH_DECLARE



Signed-off-by: default avatarSherry Zhang <sherry.zhang2@arm.com>
Change-Id: I970582777018094d0cbf83d3131a7d5c576035e5
parent ae9d256c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -249,8 +249,7 @@ fih_int fih_int_encode(int x)
#endif /* FIH_ENABLE_DOUBLE_VARS */

#define FIH_DECLARE(var, val) \
    fih_ret var; \
    FIH_SET(var, val);
    fih_ret FIH_SET(var, val)

/* C has a common return pattern where 0 is a correct value and all others are
 * errors. This function converts 0 to FIH_SUCCESS and any other number to a