diff options
author | Dan Carpenter <error27@gmail.com> | 2010-05-14 10:49:20 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-05-17 02:10:13 -0400 |
commit | 2448b14715bc83d75ed779452fe89285df4d772a (patch) | |
tree | 63347c8c6558e5f5c5ba92fb0603c011d9a5225f /sound/pci | |
parent | b0fb75ad5c8ca205396d7a493c9be5a5da802747 (diff) |
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 254c580db63..15f0c7ea0e5 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, | |||
3279 | 3279 | ||
3280 | buf_size = hpi_entity_size(src); | 3280 | buf_size = hpi_entity_size(src); |
3281 | *dst = kmalloc(buf_size, GFP_KERNEL); | 3281 | *dst = kmalloc(buf_size, GFP_KERNEL); |
3282 | if (dst == NULL) | 3282 | if (*dst == NULL) |
3283 | return HPI_ERROR_MEMORY_ALLOC; | 3283 | return HPI_ERROR_MEMORY_ALLOC; |
3284 | memcpy(*dst, src, buf_size); | 3284 | memcpy(*dst, src, buf_size); |
3285 | return 0; | 3285 | return 0; |