summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-06-29 01:17:46 +0300
committerLee Jones <lee@kernel.org>2022-07-19 12:54:42 +0300
commit7c06d478500b173521fed595504fba9a51c77945 (patch)
treece10f375a18a18f81dc817a4265bdc3b32542ace /drivers/mfd
parent86da8be35c00e01b8b277896d8e81fb33bf22d06 (diff)
downloadlinux-7c06d478500b173521fed595504fba9a51c77945.tar.xz
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.c2
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,