[drivers] Fix warnings identified by gcc 4.5