i2c: altera: use proper variable to hold errno