diff options
| author | 2015-12-19 21:48:59 +0100 | |
|---|---|---|
| committer | 2015-12-23 10:50:58 -0500 | |
| commit | 59f65f495d0defb62032422d1adec841fc657213 (patch) | |
| tree | 7f10935a94995d856508d741765c4d35e3882bdd /include/linux/writeback.h | |
| parent | IB/usnic: Handle 0 counts in resource allocation (diff) | |
IB/usnic: delete unneeded IS_ERR test
kzalloc doesn't return ERR_PTR, so there is no need to test for it.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression x,e;
@@
* x = kzalloc(...)
... when != x = e
* IS_ERR_OR_NULL(x)
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Dave Goodell <dgoodell@cisco.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux/writeback.h')
0 files changed, 0 insertions, 0 deletions
