summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/ldlm/ldlm_lib.c
diff options
context:
space:
mode:
authorOleg Drokin <green@linuxhacker.ru>2016-02-24 22:00:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-25 22:05:50 -0800
commitd1777aa959a88353a762fd2a9501728b0315066f (patch)
tree87067f65d7f3480df4017d9b749549f9066fc8e9 /drivers/staging/lustre/lustre/ldlm/ldlm_lib.c
parent52c902fca8d59bb54dd819943656947439b1753b (diff)
downloadop-kernel-dev-d1777aa959a88353a762fd2a9501728b0315066f.zip
op-kernel-dev-d1777aa959a88353a762fd2a9501728b0315066f.tar.gz
staging/lustre: Get rid of ldlm_error_t typedef
Replace it with enum ldlm_error Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/ldlm/ldlm_lib.c')
-rw-r--r--drivers/staging/lustre/lustre/ldlm/ldlm_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lib.c b/drivers/staging/lustre/lustre/ldlm/ldlm_lib.c
index 68bf57b..c22370b 100644
--- a/drivers/staging/lustre/lustre/ldlm/ldlm_lib.c
+++ b/drivers/staging/lustre/lustre/ldlm/ldlm_lib.c
@@ -733,7 +733,7 @@ enum ldlm_mode lck_compat_array[] = {
* Rather arbitrary mapping from LDLM error codes to errno values. This should
* not escape to the user level.
*/
-int ldlm_error2errno(ldlm_error_t error)
+int ldlm_error2errno(enum ldlm_error error)
{
int result;
@@ -761,7 +761,7 @@ int ldlm_error2errno(ldlm_error_t error)
break;
default:
if (((int)error) < 0) /* cast to signed type */
- result = error; /* as ldlm_error_t can be unsigned */
+ result = error; /* as enum ldlm_error can be unsigned */
else {
CERROR("Invalid DLM result code: %d\n", error);
result = -EPROTO;
OpenPOWER on IntegriCloud