Skip to content

Commit 404d92d

Browse files
henrikbrixandersenkartben
authored andcommitted
drivers: can: common: define each identifier in a dedicated statement
Define each identifier in a dedicated statement. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
1 parent eadf1a1 commit 404d92d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/can/can_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ static int update_sample_pnt(uint32_t total_tq, uint32_t sample_pnt, struct can_
158158
uint16_t tseg1_max = max->phase_seg1 + max->prop_seg;
159159
uint16_t tseg1_min = min->phase_seg1 + min->prop_seg;
160160
uint32_t sample_pnt_res;
161-
uint16_t tseg1, tseg2;
161+
uint16_t tseg1;
162+
uint16_t tseg2;
162163

163164
/* Calculate number of time quanta in tseg2 for given sample point */
164165
tseg2 = total_tq - (total_tq * sample_pnt) / 1000;

0 commit comments

Comments
 (0)