i2c: Refactor a kfree in i2c-dev
authorJean Delvare <khali@linux-fr.org>
Sun, 10 Dec 2006 20:21:33 +0000 (21:21 +0100)
committerJean Delvare <khali@arrakis.delvare>
Sun, 10 Dec 2006 20:21:33 +0000 (21:21 +0100)
commit07125ab2c2641e976bbaf3b89a735ad5a99e25d3
tree21c463002783fdae90e6b54673de7582710d02a1
parent3bacb36db01c7541ffea21d4ff39219e8b211a5c
i2c: Refactor a kfree in i2c-dev

Refactor kfree(i2c_dev) into return_i2c_dev(). This saves some
code and makes more sense, as the memory is allocated in
get_free_i2c_dev().

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-dev.c