Remove volatile qualifier from flag

The flag is never accessed from other threads or devices.