Skip to content

Commit 5e4a17c

Browse files
committed
perf tools: Remove excess variable declarations
JIRA: https://issues.redhat.com/browse/RHEL-78200 upstream ======== commit 51f4c00 Author: Bhaskar Chowdhury <[email protected]> Date: Wed Jun 11 15:29:03 2025 +0530 description =========== I thought array declaration might be done in the same line as assigning the value to it. Hence, getting rid of extra steps of reiterating the array name. Signed-off-by: Bhaskar Chowdhury <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]> Signed-off-by: Anubhav Shelat <[email protected]>
1 parent 3cc172f commit 5e4a17c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tools/perf/check-headers.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
YELLOW='\033[0;33m'
55
NC='\033[0m' # No Color
66

7-
declare -a FILES
8-
FILES=(
7+
declare -a FILES=(
98
"include/uapi/linux/const.h"
109
"include/uapi/drm/drm.h"
1110
"include/uapi/drm/i915_drm.h"
@@ -74,8 +73,7 @@ FILES=(
7473
"scripts/syscall.tbl"
7574
)
7675

77-
declare -a SYNC_CHECK_FILES
78-
SYNC_CHECK_FILES=(
76+
declare -a SYNC_CHECK_FILES=(
7977
"arch/x86/include/asm/inat.h"
8078
"arch/x86/include/asm/insn.h"
8179
"arch/x86/lib/inat.c"
@@ -87,8 +85,7 @@ SYNC_CHECK_FILES=(
8785
# tables that then gets included in .c files for things like id->string syscall
8886
# tables (and the reverse lookup as well: string -> id)
8987

90-
declare -a BEAUTY_FILES
91-
BEAUTY_FILES=(
88+
declare -a BEAUTY_FILES=(
9289
"arch/x86/include/asm/irq_vectors.h"
9390
"arch/x86/include/uapi/asm/prctl.h"
9491
"include/linux/socket.h"

0 commit comments

Comments
 (0)