Skip to content

Commit

Permalink
staging: vme: remove unreachable code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manohar Vanga authored and Greg Kroah-Hartman committed Feb 28, 2011
1 parent 0c3a6ed commit b004646
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/vme/vme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b004646

Please sign in to comment.