From 7c06d478500b173521fed595504fba9a51c77945 Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Wed, 29 Jun 2022 01:17:46 +0300 Subject: [PATCH] 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 Signed-off-by: Lee Jones Link: https://lore.kernel.org/r/20220628221747.33956-10-andriy.shevchenko@linux.intel.com --- drivers/mfd/intel_soc_pmic_bxtwc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/intel_soc_pmic_bxtwc.c b/drivers/mfd/intel_soc_pmic_bxtwc.c index db7bda1..1a80038 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, -- 2.7.4