audiohda: dont xspanalloc() Ctlr structure

theres no requirement for the Ctlr structure to be 8 byte aligned.
its not passed to hardware.
This commit is contained in:
cinap_lenrek 2012-12-06 17:19:13 +01:00
parent 7a99d3c6a6
commit 75b1ec6716

View file

@ -1468,8 +1468,11 @@ hdareset(Audio *adev)
if(cards == nil){
p = nil;
while(p = hdamatch(p)){
ctlr = xspanalloc(sizeof(Ctlr), 8, 0);
memset(ctlr, 0, sizeof(Ctlr));
ctlr = mallocz(sizeof(Ctlr), 1);
if(ctlr == nil){
print("hda: can't allocate memory\n");
return -1;
}
ctlr->pcidev = p;
ctlr->next = cards;
cards = ctlr;