mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
atomisp: remove a sysfs error message that can be used to log spam
Instead of logging this just report ERANGE as an error, which will give something close to the right user space report. The others of these were already removed by Dan Carpenter's patch. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
02838938a9
commit
3797616eaa
@ -107,9 +107,7 @@ static ssize_t iunit_dbglvl_store(struct device_driver *drv, const char *buf,
|
||||
if (kstrtouint(buf, 10, &iunit_debug.dbglvl)
|
||||
|| iunit_debug.dbglvl < 1
|
||||
|| iunit_debug.dbglvl > 9) {
|
||||
dev_err(atomisp_dev, "%s setting %d value invalid, should be [1,9]\n",
|
||||
__func__, iunit_debug.dbglvl);
|
||||
return -EINVAL;
|
||||
return -ERANGE;
|
||||
}
|
||||
atomisp_css_debug_set_dtrace_level(iunit_debug.dbglvl);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user