file: remove unnecessary sync() call
authorFelix Fietkau <nbd@openwrt.org>
Thu, 27 Aug 2015 12:40:57 +0000 (14:40 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 27 Aug 2015 12:40:58 +0000 (14:40 +0200)
commit2cd94fd505b293e657278e31deb32a7d66d20714
treee7d4e90b8440242c6af028e953b7062d3e83160c
parenta6a745338cd004a88edaaace5ca145a4411cdda9
file: remove unnecessary sync() call

It can be too expensive during filesystem initialization, and it is not
required for atomic handling of config changes.
If the write gets interrupted, the config file will always contain
either the new state or the old state

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
file.c