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:
parent
7a99d3c6a6
commit
75b1ec6716
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue