Code cleanup

This commit is contained in:
Uwe Seimet 2022-02-15 17:56:09 +01:00
parent 852c803e64
commit fd7fba0b2f

View File

@ -72,13 +72,10 @@ bool SCSIPrinter::Init(const map<string, string>& params)
// Use default parameters if no parameters were provided
SetParams(params.empty() ? GetDefaultParams() : params);
int t;
if (!GetAsInt(GetParam("timeout"), t) || t <= 0) {
if (!GetAsInt(GetParam("timeout"), timeout) || timeout <= 0) {
return false;
}
timeout = t;
return true;
}