attach.c: Fix Unused value

CID #330963 found  that periph_dbflags is set twice in a row. This is
harmless, however let's clean it up anyways.
This commit is contained in:
Stefan Reinauer 2023-11-16 22:18:42 -08:00
parent b299d6ae1e
commit 1f70bcf375
2 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,7 @@ CFLAGS += -D_KERNEL -DPORT_AMIGA
#DEBUG += -DDEBUG_CMDHANDLER # Debug cmdhandler.c
#DEBUG += -DDEBUG_NCR53CXXX # Debug ncr53cxxx.c
#DEBUG += -DDEBUG_PORT # Debug port.c
#DEBUG += -DDEBUG_SCSIPI # Debug with SCSIPI_DEBUG_FLAGS
#DEBUG += -DDEBUG_SCSIPI_BASE # Debug scsipi_base.c
#DEBUG += -DDEBUG_SCSICONF # Debug scsiconf.c
#DEBUG += -DDEBUG_SCSIMSG # Debug scsimsg.c

View File

@ -498,8 +498,11 @@ attach(device_t self, uint scsi_target, struct scsipi_periph **periph_p,
periph->periph_openings = 4; // Max # of outstanding commands
periph->periph_target = target; // SCSI target ID
periph->periph_lun = lun; // SCSI LUN
#ifdef DEBUG_SCSIPI
periph->periph_dbflags = SCSIPI_DEBUG_FLAGS; // Full debugging
#else
periph->periph_dbflags = 0;
#endif
periph->periph_changenum = 1;
periph->periph_channel = chan;
periph->periph_changeint = NULL;