diff options
author | Sudip Mukherjee | 2016-04-30 18:13:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-04-30 23:04:45 +0200 |
commit | bd83a4ab569ddfc71a82fb0dd002f353b67df7df (patch) | |
tree | c812c9d780a1a8d17199c421170ad21b1a93f7de /drivers/misc/cxl | |
parent | drivers:hv: Separate out frame buffer logic when picking MMIO range (diff) | |
download | kernel-qcow2-linux-bd83a4ab569ddfc71a82fb0dd002f353b67df7df.tar.gz kernel-qcow2-linux-bd83a4ab569ddfc71a82fb0dd002f353b67df7df.tar.xz kernel-qcow2-linux-bd83a4ab569ddfc71a82fb0dd002f353b67df7df.zip |
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>
Diffstat (limited to 'drivers/misc/cxl')
0 files changed, 0 insertions, 0 deletions