Skip to content

Commit fd328d3

Browse files
committed
Remove extra unnecessary casts
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent b327b1b commit fd328d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

driver/temp_sensor/f75303.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static int get_temp(const int offset, int *temp)
4343
*temp = 0;
4444
return rv;
4545
}
46-
temp_raw = (int8_t)(uint8_t)temp_raw;
46+
temp_raw = (int8_t)temp_raw;
4747
*temp = C_TO_K(temp_raw);
4848
return EC_SUCCESS;
4949
}

driver/temp_sensor/f75397.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static int get_temp(const int offset, int *temp)
4343
*temp = 0;
4444
return rv;
4545
}
46-
temp_raw = (int8_t)(uint8_t)temp_raw;
46+
temp_raw = (int8_t)temp_raw;
4747
*temp = C_TO_K(temp_raw);
4848
return EC_SUCCESS;
4949
}

0 commit comments

Comments
 (0)