Fix warning when compiling with gcc46:

error: variable 'i2c' set but not used

Approved by:	dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after:	3 days
This commit is contained in:
eadler 2012-01-20 01:38:44 +00:00
parent 18616e8fc9
commit 96a3210b4f

View File

@ -464,7 +464,7 @@ main(int argc, char** argv)
{
struct iiccmd cmd;
struct options i2c_opt;
char *dev, *skip_addr, *err_msg, *i2c_buf;
char *dev, *skip_addr, *i2c_buf;
int error, chunk_size, i, j, ch;
errno = 0;
@ -474,7 +474,6 @@ main(int argc, char** argv)
chunk_size = 16;
dev = I2C_DEV;
err_msg = NULL;
/* Default values */
i2c_opt.addr_set = 0;