summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-03-12 11:34:50 +0300
committerLee Jones <lee@kernel.org>2025-03-14 11:48:03 +0000
commit3ce71a089364813c5ca953d7bf527b6ba477d5da (patch)
tree37970b90d7b3e7fe6ff049a90acd2d65f27ab4c4
parent44356090d59efd8db152e9eecb8e7f843be319f0 (diff)
mfd: cgbc-core: Cleanup signedness in cgbc_session_request()
This doesn't affect how the code works because there are some implicit casts, but the "ret" variable is used to hold negative error codes so it should be type int. Declare it as "int" instead of "unsigned int". Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/9e812dfa-e216-4e40-bbf0-d0b63b110bb0@stanley.mountain Signed-off-by: Lee Jones <lee@kernel.org>
-rw-r--r--drivers/mfd/cgbc-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/cgbc-core.c b/drivers/mfd/cgbc-core.c
index 85283c8dde25..0b3788c2c1af 100644
--- a/drivers/mfd/cgbc-core.c
+++ b/drivers/mfd/cgbc-core.c
@@ -96,7 +96,7 @@ static int cgbc_session_command(struct cgbc_device_data *cgbc, u8 cmd)
static int cgbc_session_request(struct cgbc_device_data *cgbc)
{
- unsigned int ret;
+ int ret;
ret = cgbc_wait_device(cgbc);