Skip to content

Commit 3ce71a0

Browse files
Dan Carpenterlag-linaro
authored andcommitted
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>
1 parent 4435609 commit 3ce71a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/cgbc-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int cgbc_session_command(struct cgbc_device_data *cgbc, u8 cmd)
9696

9797
static int cgbc_session_request(struct cgbc_device_data *cgbc)
9898
{
99-
unsigned int ret;
99+
int ret;
100100

101101
ret = cgbc_wait_device(cgbc);
102102

0 commit comments

Comments
 (0)