Update i2c.c

Minor changes (tabulations, and remove useless variables)