Skip to contentSkip to conversation

Staging: lustre: obd_class.h: Remove unused macro OBD_CHECK_MD_OP

PATCH New Shraddha Barke 1 participant 1 message Oct 15, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: lustre: obd_class.h: Remove unused macro OBD_CHECK_MD_OP

Remove macro OBD_CHECK_MD_OP since it is defined but not used

---
 drivers/staging/lustre/lustre/include/obd_class.h | 10 ----------
 1 file changed, 10 deletions(-)
drivers/staging/lustre/lustre/include/obd_class.h +0 -10
index ec36c88..561dcd5 100644
@@ -353,16 +353,6 @@ static inline int obd_check_dev_active(struct obd_device *obd)
 				(export)->exp_md_stats, coffset);	    \
 	}
 
-#define OBD_CHECK_MD_OP(obd, op, err)			   \
-do {							    \
-	if (!OBT(obd) || !MDP((obd), op)) {		     \
-		if (err)					\
-			CERROR("md_" #op ": dev %s/%d no operation\n", \
-			       obd->obd_name, obd->obd_minor);  \
-		return err;				    \
-	}						       \
-} while (0)
-
 #define EXP_CHECK_MD_OP(exp, op)				\
 do {							    \
 	if ((exp) == NULL) {				    \
Signature · 1 line
2.1.4