Files
ipmitool/lib/ipmi_dcmi.c
Alexander Amelkin 97da8c83ae dcmi: Refactor to simplify read length calculation
Multiple functions use a very complex equation employing
division, modulo, and ternary conditionals to perform a
very simple task of finding the minimum of two values.

Replace all those equations with a call to __min() macro.

Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
2019-08-30 13:42:42 +03:00

65 KiB
Executable File