Staging: lustre: obd_class.h: Remove unused macro OBD_CHECK_MD_OP
authorShraddha Barke <shraddha.6596@gmail.com>
Thu, 15 Oct 2015 08:20:19 +0000 (13:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:29:33 +0000 (22:29 -0700)
Remove macro OBD_CHECK_MD_OP since it is defined but not used

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd_class.h

index ec36c88..561dcd5 100644 (file)
@@ -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) {                                \