fs: littlefs: sample: Move value increment test to separate function

The code responsible for incrementing the in-file value has been moved
to the separate function for better readability and reusage.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
1 file changed