drivers: fuel_gauge: max17048: Remov unused var

Remove the unused variable 'data' from function
max17048_emul_transfer_i2c()

Signed-off-by: Marcel Krüger <marcel.krueger@ithinx.io>
This commit is contained in:
Marcel Krüger 2023-07-12 09:03:30 +02:00 committed by Carles Cufí
commit f2ba0b7ae2

View file

@ -69,13 +69,10 @@ static int max17048_emul_transfer_i2c(const struct emul *target, struct i2c_msg
int num_msgs, int addr)
{
/* Largely copied from emul_bmi160.c */
struct max17048_emul_data *data;
unsigned int val;
int reg;
int rc;
data = target->data;
__ASSERT_NO_MSG(msgs && num_msgs);
i2c_dump_msgs_rw("emul", msgs, num_msgs, addr, false);