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:
parent
4c4e2c5213
commit
f2ba0b7ae2
1 changed files with 0 additions and 3 deletions
|
@ -69,13 +69,10 @@ static int max17048_emul_transfer_i2c(const struct emul *target, struct i2c_msg
|
||||||
int num_msgs, int addr)
|
int num_msgs, int addr)
|
||||||
{
|
{
|
||||||
/* Largely copied from emul_bmi160.c */
|
/* Largely copied from emul_bmi160.c */
|
||||||
struct max17048_emul_data *data;
|
|
||||||
unsigned int val;
|
unsigned int val;
|
||||||
int reg;
|
int reg;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
data = target->data;
|
|
||||||
|
|
||||||
__ASSERT_NO_MSG(msgs && num_msgs);
|
__ASSERT_NO_MSG(msgs && num_msgs);
|
||||||
|
|
||||||
i2c_dump_msgs_rw("emul", msgs, num_msgs, addr, false);
|
i2c_dump_msgs_rw("emul", msgs, num_msgs, addr, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue