rk: ion: fix compilation warning without CONFIG_COMPAT
authorCMY <cmy@rock-chips.com>
Wed, 4 Mar 2015 01:27:51 +0000 (09:27 +0800)
committerCMY <cmy@rock-chips.com>
Wed, 4 Mar 2015 02:39:18 +0000 (10:39 +0800)
Signed-off-by: CMY <cmy@rock-chips.com>
drivers/staging/android/ion/rockchip/rockchip_ion.c

index f75dc757f9b3d83e28af8a876a759fda25a84f54..ea7b7334a6e52126fddaa2cfc69aa6a61f7090a1 100755 (executable)
@@ -193,12 +193,11 @@ static int rockchip_ion_get_phys(struct ion_client *client, unsigned long arg)
 static long rockchip_custom_ioctl (struct ion_client *client, unsigned int cmd,
                              unsigned long arg)
 {
-       long ret;
-
        pr_debug("%s(%d): cmd=%x\n", __func__, __LINE__, cmd);
 
        if (is_compat_task()) {
 #ifdef CONFIG_COMPAT
+               long ret;
                switch (cmd) {
                case COMPAT_ION_IOC_GET_PHYS: {
                        struct compat_ion_phys_data __user *data32;