Commit 2bbe9783 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

staging/atomisp: silence uninitialized variable warnings

These print an uninitialized value for "opt".  Let's just remove the
printk.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f07d4b42
...@@ -128,11 +128,9 @@ static ssize_t iunit_dbgfun_store(struct device_driver *drv, const char *buf, ...@@ -128,11 +128,9 @@ static ssize_t iunit_dbgfun_store(struct device_driver *drv, const char *buf,
unsigned int opt; unsigned int opt;
int ret; int ret;
if (kstrtouint(buf, 10, &opt)) { ret = kstrtouint(buf, 10, &opt);
dev_err(atomisp_dev, "%s setting %d value invalid\n", if (ret)
__func__, opt); return ret;
return -EINVAL;
}
ret = atomisp_set_css_dbgfunc(iunit_debug.isp, opt); ret = atomisp_set_css_dbgfunc(iunit_debug.isp, opt);
if (ret) if (ret)
...@@ -154,11 +152,9 @@ static ssize_t iunit_dbgopt_store(struct device_driver *drv, const char *buf, ...@@ -154,11 +152,9 @@ static ssize_t iunit_dbgopt_store(struct device_driver *drv, const char *buf,
unsigned int opt; unsigned int opt;
int ret; int ret;
if (kstrtouint(buf, 10, &opt)) { ret = kstrtouint(buf, 10, &opt);
dev_err(atomisp_dev, "%s setting %d value invalid\n", if (ret)
__func__, opt); return ret;
return -EINVAL;
}
iunit_debug.dbgopt = opt; iunit_debug.dbgopt = opt;
ret = iunit_dump_dbgopt(iunit_debug.isp, iunit_debug.dbgopt); ret = iunit_dump_dbgopt(iunit_debug.isp, iunit_debug.dbgopt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment