2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/drivers/char/xillybus
Sudip Mukherjee bd83a4ab56 char: xillybus: use devm_add_action_or_reset
If devm_add_action() fails we are explicitly calling dma_unmap_single(),
pci_unmap_single() and kfree(). Lets use the helper
devm_add_action_or_reset() and return directly in case of error, as we
know that the cleanup function has been already called by the helper if
there was any error. At that same time remove the variable rc which
becomes unused now.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-04-30 14:04:45 -07:00
..
Kconfig xillybus: XILLYBUS_OF should depend on HAS_DMA 2015-05-24 12:24:35 -07:00
Makefile
xillybus_core.c char: xillybus: Fix internal data structure initialization 2016-03-05 12:19:39 -08:00
xillybus_of.c char: xillybus: use devm_add_action_or_reset 2016-04-30 14:04:45 -07:00
xillybus_pcie.c char: xillybus: use devm_add_action_or_reset 2016-04-30 14:04:45 -07:00
xillybus.h