summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorManohar Vanga <manohar.vanga@cern.ch>2011-02-26 23:36:15 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-28 13:30:07 -0800
commitb00464677923a7878b8c3164d7462b80f641bba6 (patch)
treeb78d9e29dbed1eccfe547983b95304713e9603c8 /drivers/staging
parent0c3a6ede3c9ffff6771915320504e8e140ac18b8 (diff)
downloadtalos-op-linux-b00464677923a7878b8c3164d7462b80f641bba6.tar.gz
talos-op-linux-b00464677923a7878b8c3164d7462b80f641bba6.zip
staging: vme: remove unreachable code
Remove some unreachable code (kfree calls) from vme.c Signed-off-by: Manohar Vanga <manohar.vanga@cern.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/vme/vme.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/vme/vme.c b/drivers/staging/vme/vme.c
index c1ec230f005a..c078ce369df9 100644
--- a/drivers/staging/vme/vme.c
+++ b/drivers/staging/vme/vme.c
@@ -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:
OpenPOWER on IntegriCloud