lualoader: Fix some lint-mentioned errors
- nextbootfile is not a variable, but nextboot_file is - pstatus was explicitly initialized but later clobbered, so don't initialize it.
This commit is contained in:
parent
50d2e745fa
commit
2f3ecc87bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330261
@ -173,7 +173,7 @@ local function checkNextboot()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not config.parse(text) then
|
if not config.parse(text) then
|
||||||
print(MSG_FAILPARSECFG:format(nextbootfile))
|
print(MSG_FAILPARSECFG:format(nextboot_file))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Attempt to rewrite the first line and only the first line of the
|
-- Attempt to rewrite the first line and only the first line of the
|
||||||
@ -274,7 +274,7 @@ end
|
|||||||
|
|
||||||
function config.loadmod(mod, silent)
|
function config.loadmod(mod, silent)
|
||||||
local status = true
|
local status = true
|
||||||
local pstatus = true
|
local pstatus
|
||||||
for k, v in pairs(mod) do
|
for k, v in pairs(mod) do
|
||||||
if v.load == "YES" then
|
if v.load == "YES" then
|
||||||
local str = "load "
|
local str = "load "
|
||||||
|
Loading…
Reference in New Issue
Block a user