Whamcloud - gitweb
LU-13723 lustre: Convert ERR_PTR(PTR_ERR()) to ERR_CAST() 04/39204/3
authorArshad Hussain <arshad.super@gmail.com>
Sat, 27 Jun 2020 12:25:18 +0000 (17:55 +0530)
committerOleg Drokin <green@whamcloud.com>
Sat, 4 Jul 2020 03:05:57 +0000 (03:05 +0000)
commit593d02f2245d941f2ea0ac847aa2de215c83187e
treebbdcd482b692a4ce10121712df81858de398f845
parent3ea729fe822d3c39df6d8a5fb530dd8a6901c91c
LU-13723 lustre: Convert ERR_PTR(PTR_ERR()) to ERR_CAST()

This patch converts ERR_PTR(PTR_ERR()) to ERR_CAST()
This fixes warning thrown by coccinelle

It also updates contrib/scripts/spelling.txt to catch
any future misuse of ERR_PTR(PTR_ERR())

Test-Parameters: trivial
Signed-off-by: Arshad Hussain <arshad.super@gmail.com>
Change-Id: I2214f46c08e5295dd139e7b4b245881cd9f6495a
Reviewed-on: https://review.whamcloud.com/39204
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Ben Evans <beevans@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/scripts/spelling.txt
lustre/llite/llite_nfs.c
lustre/lod/lod_qos.c
lustre/mdd/mdd_device.c
lustre/obdclass/dt_object.c
lustre/obdclass/local_storage.c