From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Date: Thu, 02 Jun 2011 07:10:59 +0000 Subject: Re: [PATCH 4/10] drivers/net/can/flexcan.c: add missing clk_put Message-Id: <20110602.001059.183111215741236866.davem@davemloft.net> List-Id: References: <20110601.131136.391831410750786951.davem@davemloft.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: julia@diku.dk Cc: joe@perches.com, wg@grandegger.com, kernel-janitors@vger.kernel.org, socketcan-core@lists.berlios.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, wharms@bfs.de From: Julia Lawall Date: Thu, 2 Jun 2011 07:48:50 +0200 (CEST) > From: Julia Lawall > > The failed_get label is used after the call to clk_get has succeeded, so it > should be moved up above the call to clk_put. > > The failed_req labels doesn't do anything different than failed_get, so > delete it. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) ... > Signed-off-by: Julia Lawall Applied.