From 1f6a92d7bc8c0782fac673a5b0dcf77326442258 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 21 Jul 2018 13:01:59 +0100 Subject: [PATCH] devscsi: don't compile in unused data structures when not needed --- Kernel/dev/devscsi.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Kernel/dev/devscsi.c b/Kernel/dev/devscsi.c index af4cda3f..d3ffc60f 100644 --- a/Kernel/dev/devscsi.c +++ b/Kernel/dev/devscsi.c @@ -15,6 +15,8 @@ #include #include +#ifdef CONFIG_SCSI + /* The live command block */ struct Sidcmd si_dcb; uint8_t si_user; @@ -23,15 +25,14 @@ uint8_t si_user; static struct Sierr error; static uint8_t status[2]; -#ifdef CONFIG_SCSI /* - * Si_cmdend() Wait till end of scsi comand and return errors. + * Si_cmdend() Wait till end of scsi command and return errors. */ static uint8_t si_cmdend(void) { int err; - status[0] = -1; + status[0] = 0xFF; si_dcb.length = 2; si_user = 0; /* Gets status and message byte */ -- 2.34.1