Cleaned up formatting in device.c - no functionality changes.