Skip to content

Commit 4ee876b

Browse files
pabigotioannisg
authored andcommitted
drivers/i2c: stm32_v1: remove unused variable
A recent patch removed use of the cfg structure, but left a pointer to it defined which causes build failures. Signed-off-by: Peter Bigot <[email protected]>
1 parent ba6138d commit 4ee876b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/i2c/i2c_ll_stm32_v1.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,6 @@ void stm32_i2c_error_isr(void *arg)
617617
int32_t stm32_i2c_msg_write(const struct device *dev, struct i2c_msg *msg,
618618
uint8_t *next_msg_flags, uint16_t saddr)
619619
{
620-
const struct i2c_stm32_config *cfg = DEV_CFG(dev);
621620
struct i2c_stm32_data *data = DEV_DATA(dev);
622621

623622
msg_init(dev, msg, next_msg_flags, saddr, I2C_REQUEST_WRITE);

0 commit comments

Comments
 (0)