NFC: nci: hci: Fix releasing uninitialized skbs
authorJoe Perches <joe@perches.com>
Mon, 1 Jun 2015 00:44:45 +0000 (17:44 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Jun 2015 22:34:19 +0000 (00:34 +0200)
commit2622e2a03cd7320f57a4f5171c242dccdab035dd
tree7cf56686031b93f5476841aeac444de9bf920a6f
parent8a2151c587715e84af676ee6c210fd41b912de76
NFC: nci: hci: Fix releasing uninitialized skbs

Several of these goto exit; uses should be direct returns
as skb is not yet initialized by nci_hci_get_param().

Miscellanea:

o Use !memcmp instead of memcmp() == 0
o Remove unnecessary goto from if () {... goto exit;} else {...} exit:

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/nci/hci.c