[Fix build warnings] Declaration of 'rv' shadows a previous local 33/258833/1
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 26 May 2021 09:08:20 +0000 (14:38 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Wed, 26 May 2021 09:08:20 +0000 (14:38 +0530)
Change-Id: Ie6ae3ef465eb005e4c52be906fbd930dee7125a9
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
include/wifi_internal.h

index 3666d51..79ff922 100755 (executable)
@@ -92,9 +92,9 @@ typedef enum {
 
 #define CHECK_FEATURE_SUPPORTED(...) \
        do { \
-               int rv = _wifi_check_feature_supported(__VA_ARGS__, NULL); \
-               if (rv != WIFI_MANAGER_ERROR_NONE) \
-                       return rv; \
+               int check_feature_rv = _wifi_check_feature_supported(__VA_ARGS__, NULL); \
+               if (check_feature_rv != WIFI_MANAGER_ERROR_NONE) \
+                       return check_feature_rv; \
        } while (0)
 
 #define WIFI_LOG(log_level, format, args...) \