Fixing errors and warnings from checkpatch.pl