diff options
-rw-r--r-- | net/nfc/core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c index ada92316f723..be5d50c6d81d 100644 --- a/net/nfc/core.c +++ b/net/nfc/core.c | |||
@@ -280,9 +280,6 @@ static struct nfc_target *nfc_find_target(struct nfc_dev *dev, u32 target_idx) | |||
280 | { | 280 | { |
281 | int i; | 281 | int i; |
282 | 282 | ||
283 | if (dev->n_targets == 0) | ||
284 | return NULL; | ||
285 | |||
286 | for (i = 0; i < dev->n_targets; i++) { | 283 | for (i = 0; i < dev->n_targets; i++) { |
287 | if (dev->targets[i].idx == target_idx) | 284 | if (dev->targets[i].idx == target_idx) |
288 | return &dev->targets[i]; | 285 | return &dev->targets[i]; |