linux-3.15-rc5/arch/arm/mach-omap1/board-sx1.c:89: possible missing function call return value check ?
Bug #1321855 reported by
dcb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro |
New
|
Undecided
|
Unassigned |
Bug Description
[linux-
.c:95]: (performance) Variable 'err' is reassigned a value before the old one has been used.
Source code is
err = i2c_transfer(adap, msg, 1);
msg->addr = devaddr; /* I2C address */
msg->flags = I2C_M_RD;
msg->len = 1;
msg->buf = data;
err = i2c_transfer(adap, msg, 1);
Suggest sanity check value of 'err' after first assignment.
To post a comment you must log in.