Re: [PATCH] fix ptr_ret.cocci warnings

2017-05-15 Thread Stephan Müller
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

[PATCH] fix ptr_ret.cocci warnings

2017-05-15 Thread Julia Lawall
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