audio: a2220: remove compile warnings
Philip Rakity [Mon, 8 Jul 2013 19:06:20 +0000 (20:06 +0100)]
Change-Id: I8693c1a821b8c75836c1c908db80995c26bcf867
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246216
(cherry picked from commit 10fe72fa67663e7565bbdcd7981b0c6caa821e50)
(cherry picked from commit abe70f430c8d6ef59b72e48821451dfe3f4b985d)
Reviewed-on: http://git-master/r/269602
Reviewed-by: Scott Peterson <speterson@nvidia.com>

drivers/misc/a2220.c

index bfcf5f1..3656e80 100644 (file)
@@ -303,7 +303,7 @@ static int hpt_longCmd_execute(unsigned char *i2c_cmds, int size)
 }
 #endif
 
-static int a2220_set_boot_mode()
+static int a2220_set_boot_mode(void)
 {
        int rc;
        int retry = RETRY_CNT;
@@ -354,11 +354,10 @@ static int a2220_set_boot_mode()
 static ssize_t a2220_bootup_init(struct a2220img *pImg)
 {
        struct a2220img *vp = pImg;
-       int rc, pass = 0;
+       int rc = 0, pass = 0;
        int remaining;
        int retry = RETRY_CNT;
        unsigned char *index;
-       char buf[2];
 
        mdelay(10);