Am Montag, 15. Mai 2017, 12:52:11 CEST schrieb Julia Lawall:
Hi Julia,
> Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
>
> Generated by: scripts/coccinelle/api/ptr_ret.cocci
Thank you, included -- it will be present in the next release.
Ciao
Stephan
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci
CC: Stephan Müller
Signed-off-by: Julia Lawall
Signed-off-by: Fengguang Wu
---
Not very important, but the code can be a little simpler.
lrng_base.c |5 +
1 file changed, 1 i