summaryrefslogtreecommitdiffstats
path: root/net/nfc/core.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-25 09:18:10 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2014-03-14 20:19:08 +0100
commit3143a4ca610d6a3de0d8814ee6f5f7da6fc7fbfa (patch)
tree434e24069b2b015d49981b8d11314e905c1966c6 /net/nfc/core.c
parent365a721adbdfe5f6577a66b9b74c12dc98fbb4a3 (diff)
downloadlinux-3143a4ca610d6a3de0d8814ee6f5f7da6fc7fbfa.tar.bz2
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>
Diffstat (limited to 'net/nfc/core.c')
-rw-r--r--net/nfc/core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c
index be5d50c6d81d..819b87702b70 100644
--- a/net/nfc/core.c
+++ b/net/nfc/core.c
@@ -652,9 +652,6 @@ int nfc_set_remote_general_bytes(struct nfc_dev *dev, u8 *gb, u8 gb_len)
{
pr_debug("dev_name=%s gb_len=%d\n", dev_name(&dev->dev), gb_len);
- if (gb_len > NFC_MAX_GT_LEN)
- return -EINVAL;
-
return nfc_llcp_set_remote_gb(dev, gb, gb_len);
}
EXPORT_SYMBOL(nfc_set_remote_general_bytes);