diff options
author | Julia Lawall <julia@diku.dk> | 2008-12-13 16:37:59 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-12-14 11:03:46 +0000 |
commit | 442a902262e1dfc3f1298ceea5f3120fe2043904 (patch) | |
tree | 6bf2510f63591779c5c6d5c2195f75ba84b18cd7 /scripts/pnmtologo.c | |
parent | 674a0a6939a954ab92fdd9833943e2277550bb0a (diff) |
[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>
Diffstat (limited to 'scripts/pnmtologo.c')
0 files changed, 0 insertions, 0 deletions