diff options
author | Dan Carpenter <error27@gmail.com> | 2010-05-14 14:49:20 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-05-17 06:10:13 (GMT) |
commit | 2448b14715bc83d75ed779452fe89285df4d772a (patch) | |
tree | 63347c8c6558e5f5c5ba92fb0603c011d9a5225f /sound/pci | |
parent | b0fb75ad5c8ca205396d7a493c9be5a5da802747 (diff) | |
download | linux-fsl-qoriq-2448b14715bc83d75ed779452fe89285df4d772a.tar.xz |
ALSA: asihpi: testing the wrong variable
There is a typo here. We want to test "*dst" not "dst".
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/asihpi/hpifunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/asihpi/hpifunc.c b/sound/pci/asihpi/hpifunc.c index 254c580..15f0c7e 100644 --- a/sound/pci/asihpi/hpifunc.c +++ b/sound/pci/asihpi/hpifunc.c @@ -3279,7 +3279,7 @@ static u16 hpi_entity_alloc_and_copy(struct hpi_entity *src, buf_size = hpi_entity_size(src); *dst = kmalloc(buf_size, GFP_KERNEL); - if (dst == NULL) + if (*dst == NULL) return HPI_ERROR_MEMORY_ALLOC; memcpy(*dst, src, buf_size); return 0; |