Remove trailing whitespace in device driver