i2c: rcar: simplify check for last message
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 14 Sep 2014 20:14:14 +0000 (00:14 +0400)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 29 Sep 2014 20:41:17 +0000 (22:41 +0200)
commitc30d7662d81062cbc25e5ff50be8dbaca3a1f20a
tree09004fe97d82967d5b21225033b90f80326c799e
parent4bcfda09936da647b0a3b49d5dcb3c6c6ebb0395
i2c: rcar: simplify check for last message

rcar_i2c_master_xfer() needlessly compares the message pointers (using indirect
addressing) in order to detect the last I2C message, while it's enough to only
compare the message indexes.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c