summaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-07-28 16:58:42 +0800
committerTakashi Iwai <tiwai@suse.de>2010-07-28 11:53:03 +0200
commit63818c448ac6f4dd75aa42997acaa746f86acb6b (patch)
tree7610b4310f3b0e6dd0fc1789f7d1944bd22f6071 /sound/pci/asihpi
parent7899f81fe4aa76b7ff26293f9ef670b3d53e58aa (diff)
downloadblackbird-op-linux-63818c448ac6f4dd75aa42997acaa746f86acb6b.tar.gz
blackbird-op-linux-63818c448ac6f4dd75aa42997acaa746f86acb6b.zip
ALSA: hpimsgx: fix wrong sizeof
The correct size should be sizeof(gRESP_HPI_SUBSYS_FIND_ADAPTERS), sizeof(&gRESP_HPI_SUBSYS_FIND_ADAPTERS) is incorrect. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi')
-rw-r--r--sound/pci/asihpi/hpimsgx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/asihpi/hpimsgx.c b/sound/pci/asihpi/hpimsgx.c
index 2ee90dc3d897..f01ab964f602 100644
--- a/sound/pci/asihpi/hpimsgx.c
+++ b/sound/pci/asihpi/hpimsgx.c
@@ -741,7 +741,7 @@ static void HPIMSGX__reset(u16 adapter_index)
hpi_init_response(&hr, HPI_OBJ_SUBSYSTEM,
HPI_SUBSYS_FIND_ADAPTERS, 0);
memcpy(&gRESP_HPI_SUBSYS_FIND_ADAPTERS, &hr,
- sizeof(&gRESP_HPI_SUBSYS_FIND_ADAPTERS));
+ sizeof(gRESP_HPI_SUBSYS_FIND_ADAPTERS));
for (adapter = 0; adapter < HPI_MAX_ADAPTERS; adapter++) {
OpenPOWER on IntegriCloud