Some compilers give an error, "a label can only be part of a
statement and a declaration is not a statement" for declaration
in middle of statement. Fix the error by moving declaration to
function top.
Change-Id: I4abcb45fd8b6824869d772bc1fda2083ae7475c0
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
{
int ret = 0;
struct k1xisp_pipe_dev *pipe_dev = file->private_data;
+ struct isp_regs_info *user_regs;
ISP_DRV_CHECK_POINTER(pipe_dev);
switch (cmd) {
ret = k1xisp_pipe_undeploy_driver(pipe_dev, *((u32*)arg));
break;
case ISP_IOC_SET_REG:
- struct isp_regs_info *user_regs = (struct isp_regs_info*)arg;
+ user_regs = (struct isp_regs_info*)arg;
if (pipe_dev->isp_reg_mem[user_regs->mem_index].config) {
if (pipe_dev->isp_reg_mem[user_regs->mem_index].mem.fd != user_regs->mem.fd) {