misc/misc.c: fixed checkpatch.pl warnings

Fixed several checkpatch.pl warnings:

  - line over 80 characters (with 8 space tabs)

  - if statement with unneeded brackets