From: Shraddha Barke Date: Thu, 15 Oct 2015 08:20:19 +0000 (+0530) Subject: Staging: lustre: obd_class.h: Remove unused macro OBD_CHECK_MD_OP X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f5ef08d8f1f51f29c9f4f7457e76789e7f10212b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/include/obd_class.h b/drivers/staging/lustre/lustre/include/obd_class.h index ec36c882fcab..561dcd53442a 100644 --- a/drivers/staging/lustre/lustre/include/obd_class.h +++ b/drivers/staging/lustre/lustre/include/obd_class.h @@ -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) { \