Home
last modified time | relevance | path

Searched hist:"442 a902262e1dfc3f1298ceea5f3120fe2043904" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/arm/common/
H A Dsa1111.cdiff 442a902262e1dfc3f1298ceea5f3120fe2043904 Sat Dec 13 16:37:59 CET 2008 Julia Lawall <julia@diku.dk> [ARM] arch/arm/common/sa1111.c: Correct error handling code

If it is reasonable to apply PTR_ERR to the result of calling clk_get, then
that result should first be tested with IS_ERR, not with !.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression E,E1;
@@

if (
- E == NULL
+ IS_ERR(E)
) { <+... when != E = E1
PTR_ERR(E)
...+> }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>