Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262172
b: refs/heads/master
c: dc889f1
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Takashi Iwai committed Aug 1, 2011
1 parent 8804b34 commit 7f61eb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec2cf68e024b4f66df11683147d63e07db6ee875
refs/heads/master: dc889f18646325d07eb24ef634f082d60b0beebb
9 changes: 6 additions & 3 deletions trunk/sound/pci/asihpi/hpidspcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ short hpi_dsp_code_open(u32 adapter, void *os_data, struct dsp_code *dsp_code,
struct pci_dev *dev = os_data;
struct code_header header;
char fw_name[20];
short err_ret = HPI_ERROR_DSP_FILE_NOT_FOUND;
int err;

sprintf(fw_name, "asihpi/dsp%04x.bin", adapter);
Expand Down Expand Up @@ -85,8 +86,10 @@ short hpi_dsp_code_open(u32 adapter, void *os_data, struct dsp_code *dsp_code,

HPI_DEBUG_LOG(DEBUG, "dsp code %s opened\n", fw_name);
dsp_code->pvt = kmalloc(sizeof(*dsp_code->pvt), GFP_KERNEL);
if (!dsp_code->pvt)
return HPI_ERROR_MEMORY_ALLOC;
if (!dsp_code->pvt) {
err_ret = HPI_ERROR_MEMORY_ALLOC;
goto error2;
}

dsp_code->pvt->dev = dev;
dsp_code->pvt->firmware = firmware;
Expand All @@ -99,7 +102,7 @@ short hpi_dsp_code_open(u32 adapter, void *os_data, struct dsp_code *dsp_code,
release_firmware(firmware);
error1:
dsp_code->block_length = 0;
return HPI_ERROR_DSP_FILE_NOT_FOUND;
return err_ret;
}

/*-------------------------------------------------------------------*/
Expand Down

0 comments on commit 7f61eb3

Please sign in to comment.