get_mp function cleanup
Resolves: bz816862 Make the variables in get_mp() local, otherwise they are global Signed-off-by: Dave Young <dyoung@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
de42bcce80
commit
0e9fbaf139
@ -36,6 +36,7 @@ add_dump_code()
|
||||
get_mp()
|
||||
{
|
||||
local _mp
|
||||
local dev mp fs opts rest
|
||||
while read dev mp fs opts rest; do
|
||||
if [ "$dev" = "$1" ]; then
|
||||
_mp="$mp"
|
||||
|
Loading…
Reference in New Issue
Block a user