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
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

drivers/misc/a2220.c

index 6789fa6..46d3f27 100644 (file)
@@ -305,7 +305,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;
@@ -356,11 +356,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);