From 05708986ee161c118bb0d3a17c1ddf2f201ccfb8 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Tue, 15 Feb 2022 17:56:44 +0100 Subject: [PATCH] More cleanup --- src/raspberrypi/devices/scsi_printer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/raspberrypi/devices/scsi_printer.cpp b/src/raspberrypi/devices/scsi_printer.cpp index 631e887e..30b846ad 100644 --- a/src/raspberrypi/devices/scsi_printer.cpp +++ b/src/raspberrypi/devices/scsi_printer.cpp @@ -72,11 +72,7 @@ bool SCSIPrinter::Init(const map& 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)