diff options
author | Amitoj Kaur Chawla | 2016-02-27 18:04:16 +0100 |
---|---|---|
committer | David S. Miller | 2016-03-02 19:43:03 +0100 |
commit | 7cb43bebab52d8a9aa5943fbd1babe633a255e2c (patch) | |
tree | 8505f9c1aa22ac79376877fd5f5378b10f48847b /net/ipx | |
parent | Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge (diff) | |
download | kernel-qcow2-linux-7cb43bebab52d8a9aa5943fbd1babe633a255e2c.tar.gz kernel-qcow2-linux-7cb43bebab52d8a9aa5943fbd1babe633a255e2c.tar.xz kernel-qcow2-linux-7cb43bebab52d8a9aa5943fbd1babe633a255e2c.zip |
wan: lmc: Switch to using managed resources
Use managed resource functions devm_kzalloc and pcim_enable_device
to simplify error handling. Subsequently, remove unnecessary
kfree, pci_disable_device and pci_release_regions.
To be compatible with the change, various gotos are replaced with
direct returns and unneeded labels are dropped.
Also, `sc` was only being freed in the probe function and not the
remove function before the change. By using devm_kzalloc this patch
also fixes this memory leak.
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipx')
0 files changed, 0 insertions, 0 deletions