]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/sclp: Refactor sclp_cmd.c
authorSumanth Korikkar <sumanthk@linux.ibm.com>
Fri, 8 Aug 2025 12:46:43 +0000 (14:46 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 20 Aug 2025 14:38:23 +0000 (16:38 +0200)
commitefe89a30f70753d861340a20365812e93d34a0de
tree4c6267a1fe419716cbbb2749bb80a14b4705601b
parentc17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
s390/sclp: Refactor sclp_cmd.c

To improve readability, refactor sclp_cmd.c:
* Move defines and structures to the beginning.
* Reverse x-mas tree usage.
* Remove spaces after casting to eliminate checkpatch warnings.
* Remove unnecessary comments.
* Reframe certain comments.
* Convert all unsigned long long to unsigned long since unsigned long
  long is a leftover from the 31/32-bit era.
* Use correct format specifiers.
* Add braces to for loops with bodies containing more than one line.
* Sort header files and remove unnecessary ones.
* Use __packed and __aligned instead of __attribute((packed,
  aligned(8))) in structures.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/char/sclp_cmd.c