mirror of
https://github.com/LIV2/a4091-software.git
synced 2025-12-06 06:22:44 +00:00
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:
parent
b299d6ae1e
commit
1f70bcf375
1
Makefile
1
Makefile
@ -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
|
||||
|
||||
3
attach.c
3
attach.c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user