From: Christophe Ricard Date: Wed, 3 Sep 2014 21:30:26 +0000 (+0200) Subject: NFC: st21nfcb: Fix logic when running into i2c read retry X-Git-Tag: fixes-against-v3.18-rc2~144^2~39^2~72^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac633ba6acb94a11b09a7ec417c72f65c6308b7a;p=pandora-kernel.git NFC: st21nfcb: Fix logic when running into i2c read retry When retrying to read the NCI header, the CLF might not be available the first time. However it may not be successful the second time and this may cause an error in the function. Enforce the retrieve data length is as expected. Signed-off-by: Christophe Ricard Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed