Skip to contentSkip to conversation

Warning fix for dlm.c

PATCH New Rusty Lynch 2 participants 2 messages Mar 19, 2004 – Mar 22, 2004 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Warning fix for dlm.c

The following patch fixes a couple of minor warnings about lockflags and lock_path not being used.

    --rusty
dlm.c +0 -2
Index: src/dlm.c
===================================================================
@@ -1233,12 +1233,10 @@
 	ocfs_lock_res *lockres = NULL;
 	int k = 0;
 	struct buffer_head *tmpbh = NULL, **b = NULL;
-	int lockflags = (lock_id >= osb->vol_layout.bitmap_off ? OCFS_BH_CACHED : 0);
 	/* TODO: 40 bytes of "bool" sitting on the stack for now. move    */
 	/*       mutually exclusive flags into an enum and switch on them */
 	bool disk_vote = false;
 	bool no_owner = false, owner_dead = false, wait_on_recovery = false;
-	int lock_path = invalid_path;
 	__u32 extra_lock_flags = 0;
 
 	LOG_ENTRY_ARGS ("(0x%08x, %u.%u, %u, %u, 0x%08x, 0x%08x)\n", osb,
#1 lore raw

PATCH 1/1 Warning fix for dlm.c

Quoted 2 lines · Rusty Lynch

The following patch fixes a couple of minor warnings about lockflags and lock_path not being used.

Looks good.

	--Mark

--
Mark Fasheh
Software Developer, Oracle Corp
[email protected]