diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-06-29 00:17:46 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-07-19 11:54:42 +0200 |
commit | 7c06d478500b173521fed595504fba9a51c77945 (patch) | |
tree | ce10f375a18a18f81dc817a4265bdc3b32542ace /drivers/mfd | |
parent | mfd: intel_soc_pmic_bxtwc: Use sysfs_emit() instead of sprintf() (diff) | |
download | linux-7c06d478500b173521fed595504fba9a51c77945.tar.xz linux-7c06d478500b173521fed595504fba9a51c77945.zip |
mfd: intel_soc_pmic_bxtwc: Drop unneeded casting
The casting from size_t to ssize_t is not needed in addr_store(),
drop it.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220628221747.33956-10-andriy.shevchenko@linux.intel.com
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/intel_soc_pmic_bxtwc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/intel_soc_pmic_bxtwc.c b/drivers/mfd/intel_soc_pmic_bxtwc.c index db7bda114d2d..1a80038c0e36 100644 --- a/drivers/mfd/intel_soc_pmic_bxtwc.c +++ b/drivers/mfd/intel_soc_pmic_bxtwc.c @@ -346,7 +346,7 @@ static ssize_t addr_store(struct device *dev, if (ret) return ret; - return (ssize_t)count; + return count; } static ssize_t val_show(struct device *dev, |