From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: [PATCH] fs/eventpoll.c: fix compilation warning Date: Fri, 14 Jan 2011 12:45:52 +0530 Message-ID: <1294989352-2003-1-git-send-email-viresh.kumar@st.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Viresh Kumar To: , Return-path: Received: from eu1sys200aog116.obsmtp.com ([207.126.144.141]:54783 "EHLO eu1sys200aog116.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753943Ab1ANHQE (ORCPT ); Fri, 14 Jan 2011 02:16:04 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: This patch fixes following compilation warning fs/eventpoll.c:1119: warning: 'slack' may be used uninitialized in this function Signed-off-by: Viresh Kumar --- fs/eventpoll.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 8cf0724..c24a032 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1116,7 +1116,7 @@ static int ep_poll(struct eventpoll *ep, struct epoll_event __user *events, { int res, eavail, timed_out = 0; unsigned long flags; - long slack; + long slack = 0; wait_queue_t wait; struct timespec end_time; ktime_t expires, *to = NULL; -- 1.7.2.2