if (copy_to_user((void __user *)arg, &iommu_enable,
sizeof(int))) {
IEP_ERR("error: copy_to_user failed\n");
- return -EFAULT;
+ ret = -EFAULT;
}
}
break;
if (copy_to_user((void __user *)arg, &iep_drvdata1->cap,
sizeof(struct IEP_CAP))) {
IEP_ERR("error: copy_to_user failed\n");
- return -EFAULT;
+ ret = -EFAULT;
}
break;
default:
if (copy_to_user((void __user *)arg, &iommu_enable,
sizeof(int))) {
IEP_ERR("error: copy_to_user failed\n");
- return -EFAULT;
+ ret = -EFAULT;
}
}
break;
if (copy_to_user((void __user *)arg, &iep_drvdata1->cap,
sizeof(struct IEP_CAP))) {
IEP_ERR("error: copy_to_user failed\n");
- return -EFAULT;
+ ret = -EFAULT;
}
break;
default: