NFC: Move checking valid gb_len value to nfc_llcp_set_remote_gb
authorAxel Lin <axel.lin@ingics.com>
Tue, 25 Feb 2014 01:18:10 +0000 (09:18 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 14 Mar 2014 19:19:08 +0000 (20:19 +0100)
commit3143a4ca610d6a3de0d8814ee6f5f7da6fc7fbfa
tree434e24069b2b015d49981b8d11314e905c1966c6
parent365a721adbdfe5f6577a66b9b74c12dc98fbb4a3
NFC: Move checking valid gb_len value to nfc_llcp_set_remote_gb

This checking is common for all caller, so move the checking to one place.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/core.c
net/nfc/llcp_core.c