linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] eventfs: avoid unused variable warning
@ 2015-01-28 15:10 Arnd Bergmann
  0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2015-01-28 15:10 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 567162b87a5c5f  ("eventfd: don't take the spinlock in eventfd_poll")

diff --git a/fs/eventfd.c b/fs/eventfd.c
index 439e6f0177f3..303ddc43dbee 100644
--- a/fs/eventfd.c
+++ b/fs/eventfd.c
@@ -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);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-28 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-28 15:10 [PATCH] eventfs: avoid unused variable warning Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).