diff options
| author | Julia Lawall <[email protected]> | 2015-12-26 19:12:13 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-12-29 20:31:10 +0000 |
| commit | c1e3334fa4b2891752f1367b47a60209353ba2f5 (patch) | |
| tree | 6342137bed68dc308aae74b7501ebcd2e5fced86 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | openvswitch: Fix template leak in error cases. (diff) | |
| download | kernel-c1e3334fa4b2891752f1367b47a60209353ba2f5.tar.gz kernel-c1e3334fa4b2891752f1367b47a60209353ba2f5.zip | |
drivers: net: cpsw: fix error return code
Propagate the return value of platform_get_irq on failure.
A simplified version of the semantic match that finds the two cases where
no error code is returned at all is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret < 0\|ret != 0\))
{ ... return ret; }
|
ret = 0
)
... when != ret = e1
when != &ret
*if(...)
{
... when != ret = e2
when forall
return ret;
}
// </smpl>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
