Avoid GCC optimizations from injecting a call to memset(?) in order
to initialize the buffer array in ata_raid_attach() by removing the initializer. There's no memset(?) in the kernel. Instead, assign '\0' to the first element. The buffer array holds strings only, so this is functionally equivalent. Applies to: ia64 Tripped over by: tinderbox
This commit is contained in:
parent
cd036ec193
commit
217578215b
@ -113,9 +113,10 @@ static disk_strategy_t ata_raid_strategy;
|
||||
static void
|
||||
ata_raid_attach(struct ar_softc *rdp, int writeback)
|
||||
{
|
||||
char buffer[32] = {""};;
|
||||
char buffer[32];
|
||||
int disk;
|
||||
|
||||
buffer[0] = '\0';
|
||||
mtx_init(&rdp->lock, "ATA PseudoRAID metadata lock", NULL, MTX_DEF);
|
||||
ata_raid_config_changed(rdp, writeback);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user