mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-15 20:31:03 +00:00
More cleanup
This commit is contained in:
parent
fd7fba0b2f
commit
05708986ee
@ -72,11 +72,7 @@ bool SCSIPrinter::Init(const map<string, string>& params)
|
||||
// Use default parameters if no parameters were provided
|
||||
SetParams(params.empty() ? GetDefaultParams() : params);
|
||||
|
||||
if (!GetAsInt(GetParam("timeout"), timeout) || timeout <= 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return GetAsInt(GetParam("timeout"), timeout) || timeout <= 0;
|
||||
}
|
||||
|
||||
bool SCSIPrinter::Dispatch(SCSIDEV *controller)
|
||||
|
Loading…
x
Reference in New Issue
Block a user