NFC: st21nfca: Fix logic when setting session_id
authorChristophe Ricard <christophe.ricard@gmail.com>
Mon, 28 Jul 2014 16:11:37 +0000 (18:11 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Sep 2014 21:56:49 +0000 (23:56 +0200)
commit9ec1f58b9a8ecd72e675c33bfe8ceaf1bc0dc4c5
tree2fb9ecdaf32008e74d08aabf5d5563cf78d8ad4f
parentdf2566fe37d92dfba032e6084ebfb708dac5dc9a
NFC: st21nfca: Fix logic when setting session_id

If dev_num >= ST21NFCA_NUM_DEVICES, the driver was returning an incorrect
success return code.

Once dev_num is set, it was not stated as busy.

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