Re: [PATCH 1/2] net: netcp: replace IS_ERR_OR_NULL by IS_ERR

2016-11-16 Thread David Miller
From: Julia Lawall Date: Wed, 16 Nov 2016 11:43:33 +0100 > knav_queue_open always returns an ERR_PTR value, never NULL. This can be > confirmed by unfolding the function calls and conforms to the function's > documentation. Thus, replace IS_ERR_OR_NULL by IS_ERR in error checks. > > The change

[PATCH 1/2] net: netcp: replace IS_ERR_OR_NULL by IS_ERR

2016-11-16 Thread Julia Lawall
knav_queue_open always returns an ERR_PTR value, never NULL. This can be confirmed by unfolding the function calls and conforms to the function's documentation. Thus, replace IS_ERR_OR_NULL by IS_ERR in error checks. The change is made using the following semantic patch: (http://coccinelle.lip6.