]> git.karo-electronics.de Git - linux-beck.git/commit
NFC: st21nfca: Remove useless err == 0 condition
authorChristophe Ricard <christophe.ricard@gmail.com>
Sun, 10 Aug 2014 22:04:53 +0000 (00:04 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Sep 2014 22:04:22 +0000 (00:04 +0200)
commit32b41d8f7587b6e8a2cbb3a15f83c3a9687f1f17
tree1b2987968a9970a981bc586e0a5dc8fb9a1b17aa
parent72030a2eeb182575f1bf2383f1e9267d4a6ece61
NFC: st21nfca: Remove useless err == 0 condition

On top of st21nfca_im_recv_atr_res_cb and st21nfca_im_recv_dep_res_cb a
condition if (err != 0) is present. Because err is never modified in the
code err will always be 0 at the end.

The condition can be removed.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfca/st21nfca_dep.c