* [PATCH] fs/eventpoll.c: initialize variable, remove warning
@ 2006-05-01 21:01 Petri T. Koistinen
2006-05-02 0:23 ` Al Viro
0 siblings, 1 reply; 2+ messages in thread
From: Petri T. Koistinen @ 2006-05-01 21:01 UTC (permalink / raw)
To: Davide Libenzi, Andrew Morton; +Cc: trivial, linux-kernel
From: Petri T. Koistinen <petri.koistinen@iki.fi>
Remove compiler warning by initializing uninitialized variable.
Signed-off-by: Petri T. Koistinen <petri.koistinen@iki.fi>
---
fs/eventpoll.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/fs/eventpoll.c b/fs/eventpoll.c
index 1b4491c..243c254 100644
--- a/fs/eventpoll.c
+++ b/fs/eventpoll.c
@@ -497,7 +497,7 @@ void eventpoll_release_file(struct file
*/
asmlinkage long sys_epoll_create(int size)
{
- int error, fd;
+ int error, fd = 0;
struct eventpoll *ep;
struct inode *inode;
struct file *file;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fs/eventpoll.c: initialize variable, remove warning
2006-05-01 21:01 [PATCH] fs/eventpoll.c: initialize variable, remove warning Petri T. Koistinen
@ 2006-05-02 0:23 ` Al Viro
0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2006-05-02 0:23 UTC (permalink / raw)
To: Petri T. Koistinen; +Cc: Davide Libenzi, Andrew Morton, trivial, linux-kernel
On Tue, May 02, 2006 at 12:01:51AM +0300, Petri T. Koistinen wrote:
> From: Petri T. Koistinen <petri.koistinen@iki.fi>
>
> Remove compiler warning by initializing uninitialized variable.
NAK, fd is initialized by ep_getfd() in all cases when it returns 0.
In case if ep_getfd() returns non-zero, fd is never used.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-02 0:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-01 21:01 [PATCH] fs/eventpoll.c: initialize variable, remove warning Petri T. Koistinen
2006-05-02 0:23 ` Al Viro
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.