From: Shinya Kuribayashi Date: Fri, 6 Nov 2009 12:49:14 +0000 (+0900) Subject: i2c-designware: i2c_dw_xfer_msg: Introduce a local "buf" pointer X-Git-Tag: v2.6.33-rc1~339^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26ea15b1f584de02bc85e9c3968d523386332f65;p=pandora-kernel.git i2c-designware: i2c_dw_xfer_msg: Introduce a local "buf" pointer While we have a local variable "buf_len" for dev->tx_buf_len, we don't have such local variable for dev->tx_buf pointer. While "buf_len" is restored at first then updated when we start processing a new i2c_msg (determined by STATUS_WRITE_IN_PROGRESS flag), ->tx_buf is different. Such inconsistency makes the code slightly hard to follow. Signed-off-by: Shinya Kuribayashi Acked-by: Baruch Siach Signed-off-by: Ben Dooks --- Reading git-diff-tree failed