mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-16 12:55:26 +08:00
grlib/grcanfd: Use signed integer to account for errors
This commit is contained in:
committed by
Kinsey Moore
parent
c72816751a
commit
0bafb10a69
@@ -94,7 +94,7 @@ static uint8_t len2fddlc[14] = {
|
||||
};
|
||||
|
||||
/* Convert length in bytes to descriptor length field */
|
||||
static inline uint8_t grcan_len2dlc(int len)
|
||||
static inline int8_t grcan_len2dlc(int len)
|
||||
{
|
||||
if (len <= 8)
|
||||
return len;
|
||||
@@ -313,7 +313,7 @@ static int grcan_hw_write_try_fd(
|
||||
unsigned int tmp;
|
||||
int i, bds;
|
||||
uint64_t *dp;
|
||||
uint8_t dlc;
|
||||
int8_t dlc;
|
||||
SPIN_IRQFLAGS(oldLevel);
|
||||
|
||||
DBGC(DBG_TX, "\n");
|
||||
|
||||
Reference in New Issue
Block a user