Skip to content

Commit 51f4c00

Browse files
unixbhaskarnamhyung
authored andcommitted
perf tools: Remove excess variable declarations
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]>
1 parent 614f806 commit 51f4c00

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"
@@ -73,8 +72,7 @@ FILES=(
7372
"scripts/syscall.tbl"
7473
)
7574

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

89-
declare -a BEAUTY_FILES
90-
BEAUTY_FILES=(
87+
declare -a BEAUTY_FILES=(
9188
"arch/x86/include/asm/irq_vectors.h"
9289
"arch/x86/include/uapi/asm/prctl.h"
9390
"include/linux/socket.h"

0 commit comments

Comments
 (0)