diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-07-10 08:25:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-12 03:23:49 +0200 |
commit | 3df9fcd59fd829da046ca63518ad8e51482a39e0 (patch) | |
tree | 8a6a1b9a561bbd9113db4ec488c0ab612067fdab /CREDITS | |
parent | phy: sun4i: depend on RESET_CONTROLLER (diff) | |
download | linux-3df9fcd59fd829da046ca63518ad8e51482a39e0.tar.xz linux-3df9fcd59fd829da046ca63518ad8e51482a39e0.zip |
phy: omap-usb2: fix devm_ioremap_resource error detection code
devm_ioremap_resource returns an ERR_PTR value, not NULL, on failure.
A simplified version of the semantic match that finds this problem is as
follows:
// <smpl>
@@
expression e,e1;
statement S;
@@
*e = devm_ioremap_resource(...);
if (!e1) S
// </smpl>
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions