load_analyzer: Remove unnecessary null check 96/292996/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 17 May 2023 11:08:36 +0000 (20:08 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 18 May 2023 01:37:48 +0000 (10:37 +0900)
Remove unnecessary null check for array address.

Change-Id: I0d6137a7f2e72bbc90ad2da601ecf3259b0b4bf7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/trace/load_analyzer_exynos9110.c

index ff95a5b760895387cc7be6532717eec4c6b2e879..af90d493737be25216759e51695c4fce81fb9fa4 100644 (file)
@@ -253,8 +253,7 @@ unsigned int show_cpu_load_freq_sub(int cnt, int show_cnt, char *buf, unsigned i
        } else
                cnt -= show_cnt;
 
-       if ((cnt+1 >= cpu_load_history_num)
-                       || (cpu_load_freq_history_view[cnt+1].time == 0))
+       if (cnt+1 >= cpu_load_history_num)
                cnt = 0;
        else
                cnt++;
@@ -319,8 +318,7 @@ unsigned int show_cpu_bus_load_freq_sub(int cnt, int show_cnt
        } else
                cnt -= show_cnt;
 
-       if ((cnt+1 >= cpu_load_history_num)
-                       || (cpu_load_freq_history_view[cnt+1].time == 0))
+       if (cnt+1 >= cpu_load_history_num)
                cnt = 0;
        else
                cnt++;