Partial reformat to kernel code style.
diff --git a/common-utils.c b/common-utils.c
index 9b0780b..38c4317 100644
--- a/common-utils.c
+++ b/common-utils.c
@@ -11,18 +11,18 @@
//Converts the given BCD byte to a standard integer.
int bcd_to_int(UINT8 bcd)
{
- return ((bcd & 0xF0) >> 4) * 10 + (bcd & 0x0F);
+ return ((bcd & 0xF0) >> 4) * 10 + (bcd & 0x0F);
}
//Converts the given integer to a single byte BCD.
UINT8 int_to_bcd(int value)
{
- UINT8 result = 0;
- int shift = 0;
- while (value > 0) {
- result |= (value % 10) << (shift++ << 2);
- value /= 10;
- }
+ UINT8 result = 0;
+ int shift = 0;
+ while (value > 0) {
+ result |= (value % 10) << (shift++ << 2);
+ value /= 10;
+ }
- return result;
+ return result;
}
\ No newline at end of file