Re: [PATCH] ARM: OMAP2: Delete unnecessary checks before three function calls

2015-07-16 Thread Tony Lindgren
* Paul Walmsley [150716 07:09]: > On Wed, 15 Jul 2015, Tony Lindgren wrote: > > > * Paul Walmsley [150715 22:58]: > > > Hello Markus > > > > > > On Tue, 30 Jun 2015, SF Markus Elfring wrote: > > > > > > > From: Markus Elfring > > > > Date: Tue, 30 Jun 2015 14:00:16 +0200 > > > > > > > > The

Re: [PATCH] ARM: OMAP2: Delete unnecessary checks before three function calls

2015-07-16 Thread Paul Walmsley
On Wed, 15 Jul 2015, Tony Lindgren wrote: > * Paul Walmsley [150715 22:58]: > > Hello Markus > > > > On Tue, 30 Jun 2015, SF Markus Elfring wrote: > > > > > From: Markus Elfring > > > Date: Tue, 30 Jun 2015 14:00:16 +0200 > > > > > > The functions clk_disable(), of_node_put() and omap_device_

Re: [PATCH] ARM: OMAP2: Delete unnecessary checks before three function calls

2015-07-15 Thread Tony Lindgren
* Paul Walmsley [150715 22:58]: > Hello Markus > > On Tue, 30 Jun 2015, SF Markus Elfring wrote: > > > From: Markus Elfring > > Date: Tue, 30 Jun 2015 14:00:16 +0200 > > > > The functions clk_disable(), of_node_put() and omap_device_delete() test > > whether their argument is NULL and then ret

Re: [PATCH] ARM: OMAP2: Delete unnecessary checks before three function calls

2015-07-15 Thread Paul Walmsley
Hello Markus On Tue, 30 Jun 2015, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 30 Jun 2015 14:00:16 +0200 > > The functions clk_disable(), of_node_put() and omap_device_delete() test > whether their argument is NULL and then return immediately. > Thus the test around the call is

[PATCH] ARM: OMAP2: Delete unnecessary checks before three function calls

2015-06-30 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 30 Jun 2015 14:00:16 +0200 The functions clk_disable(), of_node_put() and omap_device_delete() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software.