Browse code

modules/sca: fix compiler warning for macro.

- correct "always evaluates to true" when using address of stack variable.

Andrew Mortensen authored on 05/10/2013 17:14:09
Showing 1 changed files
... ...
@@ -48,8 +48,9 @@ struct _sca_call_info {
48 48
 typedef struct _sca_call_info		sca_call_info;
49 49
 
50 50
 #define SCA_CALL_INFO_EMPTY( ci1 ) \
51
-	(!(ci1) || ((ci1)->index == SCA_CALL_INFO_APPEARANCE_INDEX_ANY && \
52
-			(ci1)->state == SCA_APPEARANCE_STATE_UNKNOWN))
51
+	((ci1) != NULL || \
52
+		((ci1)->index == SCA_CALL_INFO_APPEARANCE_INDEX_ANY && \
53
+		(ci1)->state == SCA_APPEARANCE_STATE_UNKNOWN))
53 54
 
54 55
 #define SCA_CALL_INFO_IS_SHARED_CALLER( ci1 ) \
55 56
 	(!SCA_CALL_INFO_EMPTY((ci1)) && \