Re: [PATCH] driver-core: fix odd_ptr_err.cocci warnings

2016-11-10 Thread Dmitry Torokhov
[ resending as plain text ] On Thu, Nov 10, 2016 at 12:18 PM, Dmitry Torokhov wrote: > > > On Thu, Nov 10, 2016 at 12:16 PM, Julia Lawall wrote: >> >> PTR_ERR should access the value just tested by IS_ERR >> >> Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci >> >> CC: Dmitry Torokhov >

Re: [PATCH] driver-core: fix odd_ptr_err.cocci warnings

2016-11-10 Thread Julia Lawall
On Thu, 10 Nov 2016, Dmitry Torokhov wrote: > [ resending as plain text ] > > On Thu, Nov 10, 2016 at 12:18 PM, Dmitry Torokhov wrote: > > > > > > On Thu, Nov 10, 2016 at 12:16 PM, Julia Lawall wrote: > >> > >> PTR_ERR should access the value just tested by IS_ERR > >> > >> Generated by: scrip

[PATCH] driver-core: fix odd_ptr_err.cocci warnings

2016-11-10 Thread Julia Lawall
PTR_ERR should access the value just tested by IS_ERR Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci CC: Dmitry Torokhov Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- 0-day warning related to the following commit: tree: https://git.kernel.org/pub/scm/linux/kernel/gi