[INPUT] Replace open-coded flushall in preadbuffer Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>