i2c: at91: fix code checker warnings
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 11 Jun 2015 09:16:32 +0000 (11:16 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 11 Jun 2015 13:12:53 +0000 (22:12 +0900)
commitf30dc5208ca270ff783fa895b74bdd76dcb4ba3e
tree64a0f47a54457ca99ad8f1cdcb98702771f08c68
parentd8453403948cbe2bcfce810d82e1afcc501c3c71
i2c: at91: fix code checker warnings

buf_len is a size_t, so unsigned, but was tested with '<= 0'.

Reported-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-at91.c