summaryrefslogtreecommitdiff
path: root/fs/stat.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2011-07-18 00:06:10 +1000
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-10-24 21:00:34 +0200
commit75a23850cd282eeafbe23d6a9ade4eaf23babd51 (patch)
treeba6582c7c0c5c54dd5b986b324354b743a2a8299 /fs/stat.c
parentd996e9dc453a5f327961f19d274c6481b3bf4f34 (diff)
m68k/mac: Fix compiler warning in via_read_time()
The algorithm described in the comment compares two reads from the RTC but the code actually reads once and compares the result to an uninitialized value. This causes the compiler to warn, "last_result maybe used uninitialized". Make the code match the comment, fix the warning and perhaps improve reliability. Tested on a Quadra 700. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'fs/stat.c')
0 files changed, 0 insertions, 0 deletions