From d6639f3caeeeffbcb1153a64a9399da4a63d89e1 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 9 May 2002 20:09:34 +0000 Subject: [PATCH] Whitespace cleanup only. --- lustre/obdclass/class_obd.c | 14 +++++++------- lustre/obdclass/proc_lustre.c | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index 4f357fc..62d14ea 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -235,7 +235,7 @@ static int obd_class_ioctl (struct inode * inode, struct file * filp, /* have we attached a type to this device */ if (obd->obd_flags & OBD_ATTACHED) { - CERROR("OBD: Device %d already typed as %s.\n", + CERROR("OBD: Device %d already typed as %s.\n", obd->obd_minor, MKSTR(obd->obd_type->typ_name)); RETURN(-EBUSY); } @@ -261,7 +261,7 @@ static int obd_class_ioctl (struct inode * inode, struct file * filp, if (err) { obd->obd_type = NULL; } else { - obd->obd_flags |= OBD_ATTACHED; + obd->obd_flags |= OBD_ATTACHED; type->typ_refcnt++; CDEBUG(D_IOCTL, "OBD: dev %d attached type %s\n", obd->obd_minor, data->ioc_inlbuf1); @@ -303,8 +303,8 @@ static int obd_class_ioctl (struct inode * inode, struct file * filp, obd->obd_minor); RETURN(-EBUSY); } - - if (obd->obd_name) { + + if (obd->obd_name) { OBD_FREE(obd->obd_name, strlen(obd->obd_name)+ 1); obd->obd_name = NULL; } @@ -550,11 +550,11 @@ int obd_register_type(struct obd_ops *ops, char *nm) RETURN(-EINVAL); } - if ( obd_nm_to_type(nm) ) { + if (obd_nm_to_type(nm)) { CDEBUG(D_IOCTL, "Type %s already registered\n", nm); RETURN(-EEXIST); } - + OBD_ALLOC(type, sizeof(*type)); if (!type) RETURN(-ENOMEM); @@ -565,7 +565,7 @@ int obd_register_type(struct obd_ops *ops, char *nm) type->typ_name = nm; RETURN(0); } - + int obd_unregister_type(char *nm) { struct obd_type *type = obd_nm_to_type(nm); diff --git a/lustre/obdclass/proc_lustre.c b/lustre/obdclass/proc_lustre.c index 58af539..714a0e5 100644 --- a/lustre/obdclass/proc_lustre.c +++ b/lustre/obdclass/proc_lustre.c @@ -189,14 +189,14 @@ void proc_lustre_remove_obd_entry(const char* name, struct obd_device *obd) obd_entry = obd_dir; obd_dir = obd_dir->parent; - - /* If /proc/lustre/obd/XXX or /proc/lustre/obd or - * /proc/lustre are being removed, then reset + + /* If /proc/lustre/obd/foo or /proc/lustre/obd or + * /proc/lustre is being removed, then reset * internal variables */ - - if (obd_entry == obd->obd_proc_entry) - obd->obd_proc_entry=0; /* /proc/lustre/obd/XXX */ + + if (obd_entry == obd->obd_proc_entry) + obd->obd_proc_entry=0; /* /proc/lustre/obd/foo */ else if (obd_entry == proc_lustre_obd_dir_entry) proc_lustre_obd_dir_entry=0; -- 1.8.3.1