Commit b0046467 authored by Manohar Vanga's avatar Manohar Vanga Committed by Greg Kroah-Hartman

staging: vme: remove unreachable code

Remove some unreachable code (kfree calls) from vme.c
Signed-off-by: default avatarManohar Vanga <manohar.vanga@cern.ch>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0c3a6ede
......@@ -441,7 +441,6 @@ struct vme_resource *vme_master_request(struct device *dev,
return resource;
kfree(resource);
err_alloc:
/* Unlock image */
spin_lock(&master_image->lock);
......@@ -768,7 +767,6 @@ struct vme_dma_attr *vme_dma_pattern_attribute(u32 pattern,
return attributes;
kfree(pattern_attr);
err_pat:
kfree(attributes);
err_attr:
......@@ -809,7 +807,6 @@ struct vme_dma_attr *vme_dma_pci_attribute(dma_addr_t address)
return attributes;
kfree(pci_attr);
err_pci:
kfree(attributes);
err_attr:
......@@ -851,7 +848,6 @@ struct vme_dma_attr *vme_dma_vme_attribute(unsigned long long address,
return attributes;
kfree(vme_attr);
err_vme:
kfree(attributes);
err_attr:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment