Skip to contentSkip to conversation

staging: lustre: mdc: Remove unused macro

PATCH In review Bhaktipriya Shridhar 2 participants 3 messages Mar 1, 2016 – Mar 2, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: mdc: Remove unused macro

The macro mdc_unpack_acl(req, md) is not used anywhere. Hence, removed it.

---
 drivers/staging/lustre/lustre/mdc/mdc_request.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/lustre/lustre/mdc/mdc_request.c +0 -2
index c7a0fa1..b7e3626 100644
@@ -445,8 +445,6 @@ static int mdc_unpack_acl(struct ptlrpc_request *req, struct lustre_md *md)
 	md->posix_acl = acl;
 	return 0;
 }
-#else
-#define mdc_unpack_acl(req, md) 0
 #endif
 
 static int mdc_get_lustre_md(struct obd_export *exp,

--
2.1.4

maintainer
#1 lore raw
Quoted 2 lines · Bhaktipriya Shridhar

The macro mdc_unpack_acl(req, md) is not used anywhere. Hence, removed it.

It's used, in this very file, please be more careful.

maintainer
#2 lore raw
In reply to Bhaktipriya Shridhar
Quoted 2 lines · Bhaktipriya Shridhar

The macro mdc_unpack_acl(req, md) is not used anywhere. Hence, removed it.

It's used, in this very file, please be more careful.