diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-07-23 23:15:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-27 20:10:42 +0200 |
commit | 7b9d1f0b7a18b86db0ac1de628fa91c0994fefbe (patch) | |
tree | c97eba4fbc61dfd28f14399c8f4ca3ff4647139b /include | |
parent | Lattice ECP3 FPGA: Correct endianness (diff) | |
download | linux-7b9d1f0b7a18b86db0ac1de628fa91c0994fefbe.tar.xz linux-7b9d1f0b7a18b86db0ac1de628fa91c0994fefbe.zip |
misc: bh1780: Introduce the use of devm_kzalloc
This patch introduces the use of devm_kzalloc and does away with the
kfrees in the probe and remove functions. A label and the kfree
being called on the return path of failure on i2c_check_functionality,
which is completely unnecessary and removed. The NULL assignment of
ddata is no longer required is also done away with.
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions