linux/drivers/i2c
Julia Lawall ebba48b702 i2c: mpc: delete unneeded test before of_node_put
Of_node_put supports NULL as its argument, so the initial test is not
necessary.

Suggested by Uwe Kleine-König.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e;
@@

-if (e)
   of_node_put(e);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2014-08-08 18:45:30 +02:00
..
algos Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2014-01-29 19:56:20 -08:00
busses i2c: mpc: delete unneeded test before of_node_put 2014-08-08 18:45:30 +02:00
muxes i2c: pca954x: put the mux to disconnected state after resume 2014-08-01 19:54:59 +02:00
i2c-acpi.c I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI config 2014-06-27 14:50:41 +02:00
i2c-boardinfo.c i2c: Update the FSF address 2012-03-26 21:47:19 +02:00
i2c-core.c i2c: add debug info when class instantiation was dropped 2014-07-16 22:59:55 +02:00
i2c-core.h i2c: Update the FSF address 2012-03-26 21:47:19 +02:00
i2c-dev.c i2c: i2c-dev: Create 'name' attribute automatically 2013-09-30 06:02:31 +02:00
i2c-mux.c i2c: mux: Inherit retry count and timeout from parent for muxed bus 2013-12-12 22:39:28 +01:00
i2c-smbus.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
i2c-stub.c i2c: stub: Avoid an array overrun on I2C block transfers 2014-07-20 13:25:29 +02:00
Kconfig I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI config 2014-06-27 14:50:41 +02:00
Makefile I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI config 2014-06-27 14:50:41 +02:00