]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh: remove declared unused variables
authorDaniel Molkentin <dmolkentin@suse.com>
Wed, 16 Oct 2019 23:07:37 +0000 (01:07 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 22 Oct 2019 11:50:36 +0000 (13:50 +0200)
dracut-functions.sh

index ccc489719678600fdf132136e92677523dcb3bed..d756a463e6534671b3e04a22a93fc9e2ede33d95 100755 (executable)
@@ -174,9 +174,6 @@ convert_abs_rel() {
 # $ get_fs_env /dev/sda2
 # ext4
 get_fs_env() {
-    local evalstr
-    local found
-
     [[ $1 ]] || return
     unset ID_FS_TYPE
     ID_FS_TYPE=$(blkid -u filesystem -o export -- "$1" \
@@ -199,7 +196,7 @@ get_fs_env() {
 # $ get_maj_min /dev/sda2
 # 8:2
 get_maj_min() {
-    local _maj _min _majmin
+    local _majmin
     _majmin="$(stat -L -c '%t:%T' "$1" 2>/dev/null)"
     printf "%s" "$((0x${_majmin%:*})):$((0x${_majmin#*:}))"
 }