lkml.org 
[lkml]   [2009]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] snd: aica - fix annoying compiler warning
From
Date
Cast pointer to data member of struct firmware as a void to end an
annoying compiler warning.

fix annoying compiler warning

Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
---
diff --git a/sound/sh/aica.c b/sound/sh/aica.c
index 7c920f3..822b119 100644
--- a/sound/sh/aica.c
+++ b/sound/sh/aica.c
@@ -567,7 +567,7 @@ static int load_aica_firmware(void)
return err;
/* write firware into memory */
spu_disable();
- spu_memload(0, fw_entry->data, fw_entry->size);
+ spu_memload(0, (void *)fw_entry->data, fw_entry->size);
spu_enable();
release_firmware(fw_entry);
return err;


\
 
 \ /
  Last update: 2009-03-15 23:09    [from the cache]
©2003-2011 Jasper Spaans