Skip to contentSkip to conversation

eventfs: avoid unused variable warning

PATCH New Arnd Bergmann 1 participant 1 message Jan 28, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eventfs: avoid unused variable warning

An optimization patch from Chris Mason causes build warnings about an unused variable.

The patch that broke this is currently in the akpm-current series, so this fixup can be folded into the original patch. I was expecting multiple people to send a patch for this, so I waited a bit at first.

Fixes 567162b87a5c5f ("eventfd: don't take the spinlock in eventfd_poll")
fs/eventfd.c +0 -1
index 439e6f0177f3..303ddc43dbee 100644
@@ -118,7 +118,6 @@ static unsigned int eventfd_poll(struct file *file, poll_table *wait)
 {
 	struct eventfd_ctx *ctx = file->private_data;
 	unsigned int events = 0;
-	unsigned long flags;
 	unsigned int count;
 
 	poll_wait(file, &ctx->wqh, wait);