eeprom: idt_89hpesx: Discard memory freeing allocated by devm_kmalloc
authorSerge Semin <fancer.lancer@gmail.com>
Thu, 26 Jan 2017 13:00:36 +0000 (16:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jan 2017 08:13:57 +0000 (09:13 +0100)
commitaed74b140e10725caf8a982ea26610d1dd1f612c
tree279d9d15aee7d5ae1d666e0f54ef2a0a946a431c
parent061132d2b9c9504a9f314dcd73f6483a7d8cd1e8
eeprom: idt_89hpesx: Discard memory freeing allocated by devm_kmalloc

Indeed, the data structure is allocated by device resource manager,
so the driver doesn't need to free anything on remove() callback.

Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/idt_89hpesx.c