diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-11-13 19:29:35 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-11-16 09:07:34 +0900 |
commit | 2982c953570b2bced858613d70443c2c6a90587b (patch) | |
tree | 95ec17379f0339fff06259c978c287997e0ed890 /scripts/Makefile.modpost | |
parent | 9a234a2e384349f21afac8d718aa294a668ad4fa (diff) | |
download | linux-stable-2982c953570b2bced858613d70443c2c6a90587b.tar.gz linux-stable-2982c953570b2bced858613d70443c2c6a90587b.tar.bz2 linux-stable-2982c953570b2bced858613d70443c2c6a90587b.zip |
kbuild: remove redundant $(wildcard ...) for cmd_files calculation
I do not see any reason why $(wildcard ...) needs to be called twice
for computing cmd_files. Remove the first one.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Makefile.modpost')
-rw-r--r-- | scripts/Makefile.modpost | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index 16923ba4b5b1..cf125c11ca41 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost @@ -143,8 +143,7 @@ FORCE: # optimization, we don't need to read them if the target does not # exist, we will rebuild anyway in that case. -targets := $(wildcard $(sort $(targets))) -cmd_files := $(wildcard $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd)) +cmd_files := $(wildcard $(foreach f,$(sort $(targets)),$(dir $(f)).$(notdir $(f)).cmd)) ifneq ($(cmd_files),) include $(cmd_files) |