[klibc] ls: fix various checkpatch complaints

fix several of these:

WARNING: line over 80 characters
..

ERROR: do not use assignment in if condition
..

ERROR: else should follow close brace '}'
..

ERROR: switch and case should be at the same indent

ERROR: trailing statements should be on next line
..

ERROR: space required after that ',' (ctx:VxV)
..

ERROR: code indent should use tabs where possible
..

Signed-off-by: maximilian attems <max@stro.at>
1 file changed