setlocalversion: remove unneeded check and set -e
PATCH 1/1 setlocalversion: remove unneeded check and set -e
Kbuild creates include/config/auto.conf before running this script, so include/config/auto.conf always exists unless the user directly runs this script.
Remove the redundant check. Instead, set -e.
Signed-off-by Masahiro Yamada <[email protected]>
---
scripts/setlocalversion | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
scripts/setlocalversion +2 -5
@@ -10,6 +10,8 @@ # # +set -e + usage() { echo "Usage: $0 [srctree]" >&2 exit 1
@@ -103,11 +105,6 @@ collect_files() echo "$res" } -if ! test -e include/config/auto.conf; then - echo "Error: kernelrelease not valid - run 'make prepare' to update it" >&2 - exit 1 -fi - if [ -z "${KERNELVERSION}" ]; then echo "KERNELVERSION is not set" >&2 exit 1
Signature · 1 line
2.34.1