Skip to contentSkip to conversation

staging: lustre: llite: remove unuse variables

PATCH New Sudip Mukherjee 1 participant 1 message May 6, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: llite: remove unuse variables

there variables were not used anywhere and was showing as build warning.

---
 drivers/staging/lustre/lustre/llite/file.c      | 2 --
 drivers/staging/lustre/lustre/llite/llite_lib.c | 2 --
 2 files changed, 4 deletions(-)
drivers/staging/lustre/lustre/llite/file.c +0 -2
index 6e50b35..d2ec17f 100644
@@ -3246,8 +3246,6 @@ void ll_iocontrol_unregister(void *magic)
 	down_write(&llioc.ioc_sem);
 	list_for_each_entry(tmp, &llioc.ioc_head, iocd_list) {
 		if (tmp == magic) {
-			unsigned int size = tmp->iocd_size;
-
 			list_del(&tmp->iocd_list);
 			up_write(&llioc.ioc_sem);
 
drivers/staging/lustre/lustre/llite/llite_lib.c +0 -2
index e5bac94..2470ea4 100644
@@ -908,8 +908,6 @@ int ll_fill_super(struct super_block *sb, struct vfsmount *mnt)
 	char  *dt = NULL, *md = NULL;
 	char  *profilenm = get_profile_name(sb);
 	struct config_llog_instance *cfg;
-	/* %p for void* in printf needs 16+2 characters: 0xffffffffffffffff */
-	const int instlen = sizeof(cfg->cfg_instance) * 2 + 2;
 	int    err;
 
 	CDEBUG(D_VFSTRACE, "VFS Op: sb %p\n", sb);
Signature · 1 line
1.8.1.2