On Sat, May 31, 2003 at 09:23:54PM +0800, Eugene Teo wrote: > instead of doing if(ret_val < 0)? It's better to do this, then return the ret val as your error code. That way any additional errors that may get introduced get pushed back properly regards john -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/