[PATCH] staging: lustre: checking for NULL instead if IS_ERR

2017-04-12 Thread Dan Carpenter
lustre_cfg_new() returns error pointers and never NULL. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/lustre/lustre/obdclass/obd_config.c b/drivers/staging/lustre/lustre/obdclass/obd_config.c index 8fce88f69039..6a7e7a7d2af1 100644 ---

Re: [lustre-devel] [patch] staging: lustre: checking for NULL instead of IS_ERR

2016-03-19 Thread Dilger, Andreas
On 2016/03/18, 13:28, "lustre-devel on behalf of Dilger, Andreas" wrote: >On 2016/03/17, 23:42, "Dan Carpenter" wrote: > >>lustre_cfg_new() returns error pointers on error, it never returns

[patch] staging: lustre: checking for NULL instead of IS_ERR

2016-03-19 Thread Dan Carpenter
lustre_cfg_new() returns error pointers on error, it never returns NULL. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c b/drivers/staging/lustre/lustre/mgc/mgc_request.c index 65caffe..b7dc872 100644 ---

Re: [patch] staging: lustre: checking for NULL instead of IS_ERR

2016-03-19 Thread Dilger, Andreas
On 2016/03/17, 23:42, "Dan Carpenter" wrote: >lustre_cfg_new() returns error pointers on error, it never returns NULL. > >Signed-off-by: Dan Carpenter > >diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c