]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
populate-initrd: drop unused local variable
authorRay Strode <rstrode@redhat.com>
Tue, 16 Oct 2018 01:02:50 +0000 (21:02 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 16 Oct 2018 01:02:50 +0000 (21:02 -0400)
the inst_library function declares a variable `_lib`
that's completely unused.

This commit removes the declaration.

scripts/plymouth-populate-initrd.in

index c70adbe78f172e193b4fb3102d67b2ab9466c869..c2f46c0f148c791bb4dac4aaa9e665a862368491 100755 (executable)
@@ -168,7 +168,7 @@ rev_lib_symlinks() {
 # It handles making symlinks according to how the original library
 # is referenced.
 inst_library() {
-    local _src="$1" _dest=${2:-$1} _lib _reallib _symlink
+    local _src="$1" _dest=${2:-$1} _reallib _symlink
     strstr "$1" "/" || return 1
     [[ -e $initdir/$_dest ]] && return 0
     if [[ -L $_src ]]; then