OSDN Git Service

NFC: Remove redundant test for dev->n_targets in nfc_find_target
authorAxel Lin <axel.lin@ingics.com>
Mon, 24 Feb 2014 13:04:30 +0000 (21:04 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 14 Mar 2014 19:19:08 +0000 (20:19 +0100)
commit365a721adbdfe5f6577a66b9b74c12dc98fbb4a3
tree8c125f2069d52fdf56bde9f8c27bbf7273ac7fc6
parent7ebb88e539028f3c144c0c34d3ae187e73238cb6
NFC: Remove redundant test for dev->n_targets in nfc_find_target

Without this test, it returns NULL if dev->n_targets is 0 anyway.

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