Merge branch 'i2c/for-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
[sfrench/cifs-2.6.git] / drivers / i2c / busses / i2c-qup.c
index 29139bbe8f85f31f982e309e47e56f144abc75a5..501bd15cb78e0eddab711efcb3ea6cd86515f5bb 100644 (file)
@@ -1270,6 +1270,8 @@ static int qup_i2c_xfer_v2(struct i2c_adapter *adap,
                }
        }
 
+       idx = 0;
+
        do {
                if (msgs[idx].len == 0) {
                        ret = -EINVAL;