NFC: st21nfcb: Remove inappropriate kfree on a devm_kzalloc pointer
authorFiro Yang <firogm@gmail.com>
Sat, 6 Jun 2015 11:16:42 +0000 (13:16 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Jun 2015 22:34:22 +0000 (00:34 +0200)
commit38bd83f04c5e9695011dc5c294e0c4e6a9f9052d
tree2a1b91d999e8f4ce753711206cfd266d7f5459fd
parent759afb8d288ffbe9a1cdb20af037b5c072dc38b2
NFC: st21nfcb: Remove inappropriate kfree on a devm_kzalloc pointer

Since ndev->driver_data is allocated by devm_kzalloc(), we do not
need the inappropriate kfree to free it in driver's remove function.
Freeing will trigger when driver unloads.

Cc: stable@vger.kernel.org
Acked-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Firo Yang <firogm@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfcb/st21nfcb.c