On Wed, Mar 12, 2014 at 10:24:27PM +0530, Pankaj Gupta wrote: > Avoiding iterations for fd 0, 1 & 2 when we are closing file fds in child > process. > > Signed-off-by: Pankaj Gupta <pagu...@redhat.com> > --- > net/tap.c | 14 ++++---------- > 1 file changed, 4 insertions(+), 10 deletions(-)
POSIX defines the values of standard in, out, and error as 0, 1, and 2 constants. So this patch is correct but it doesn't do anything useful. This is something compiler can optimize (but speed doesn't even matter here). Please try to focus on patches that fix bugs, add features, or otherwise add value - it takes the community time to review, test, and merge patches. Thanks, applied to my net-next tree: https://github.com/stefanha/qemu/commits/net-next Stefan