diff options
author | Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> | 2015-04-02 20:01:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 11:18:14 +0200 |
commit | 659dc3417e8502bf93c189b891d4a048edc10683 (patch) | |
tree | dbf7ef01c5e73b70404848040363824351b18238 /drivers/staging/lustre | |
parent | f36b6553e0ffe2c06ffc025b23c13967754ce7f4 (diff) | |
download | linux-659dc3417e8502bf93c189b891d4a048edc10683.tar.bz2 |
staging: lustre: include: remove unused macros
OBD_CHECK_DEV and OBD_CHECK_DEV_ACTIVE have been replaced by static
inline functions. They are removed since they are not used anymore.
Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r-- | drivers/staging/lustre/lustre/include/obd_class.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/staging/lustre/lustre/include/obd_class.h b/drivers/staging/lustre/lustre/include/obd_class.h index e533cfff9ac3..34b5fa3f081c 100644 --- a/drivers/staging/lustre/lustre/include/obd_class.h +++ b/drivers/staging/lustre/lustre/include/obd_class.h @@ -333,14 +333,6 @@ void obdo_le_to_cpu(struct obdo *dobdo, struct obdo *sobdo); /* Ensure obd_setup: used for cleanup which must be called while obd is stopping */ -#define OBD_CHECK_DEV(obd) \ -do { \ - if (!(obd)) { \ - CERROR("NULL device\n"); \ - return -ENODEV; \ - } \ -} while (0) - static inline int obd_check_dev(struct obd_device *obd) { if (!obd) { @@ -351,16 +343,6 @@ static inline int obd_check_dev(struct obd_device *obd) } /* ensure obd_setup and !obd_stopping */ -#define OBD_CHECK_DEV_ACTIVE(obd) \ -do { \ - OBD_CHECK_DEV(obd); \ - if (!(obd)->obd_set_up || (obd)->obd_stopping) { \ - CERROR("Device %d not setup\n", \ - (obd)->obd_minor); \ - return -ENODEV; \ - } \ -} while (0) - static inline int obd_check_dev_active(struct obd_device *obd) { int rc; |