]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit443a9967eb52b3fc56c253c864ddee4d0caa327d
tree7cf56686031b93f5476841aeac444de9bf920a6f
parent485bb117e25d14ce3f1f5e5bd4081c8a7a7b2a94
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