Home
last modified time | relevance | path

Searched hist:bd83a4ab569ddfc71a82fb0dd002f353b67df7df (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/char/xillybus/
H A Dxillybus_of.cdiff bd83a4ab569ddfc71a82fb0dd002f353b67df7df Sat Apr 30 11:13:20 CDT 2016 Sudip Mukherjee <sudipm.mukherjee@gmail.com> 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>
H A Dxillybus_pcie.cdiff bd83a4ab569ddfc71a82fb0dd002f353b67df7df Sat Apr 30 11:13:20 CDT 2016 Sudip Mukherjee <sudipm.mukherjee@gmail.com> 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>