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:
Eitan Adler 2012-01-20 01:38:44 +00:00
parent 43074f1626
commit 3f028229d9

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;