driver : Fix warnings and errors with llvm

Fix pointer-bool-conversion, logical-not-parentheses
errors and warnings with llvm.

Change-Id: Idebfc5cd36af197e579bf8783e25069ae54f86f8
Signed-off-by: Naitik Bharadiya <bharad@codeaurora.org>
8 files changed