early: remove superfluous close of stdio file descriptors
authorGabor Juhos <juhosg@openwrt.org>
Fri, 19 Jul 2013 06:21:17 +0000 (08:21 +0200)
committerJohn Crispin <blogic@openwrt.org>
Mon, 22 Jul 2013 06:18:50 +0000 (08:18 +0200)
commiteed8e77dcf5b9ce9c21919ea6d549b5dd92bb18a
treef863fdae5f9f36518090dd705f02cd2571e8466f
parentc676a0cbb705a7164ca1306dc6212a45edcad495
early: remove superfluous close of stdio file descriptors

'man dup2' says:

  dup2() makes newfd be the copy of oldfd, closing newfd first if
  necessary, but note the following:

  *  If oldfd is not a valid file descriptor, then the call fails,
     and newfd is not closed.

  *  If oldfd is a valid file descriptor, and newfd has the same
     value as oldfd, then dup2() does nothing, and returns newfd.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
early.c