summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6655/michael.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/vt6655/michael.c')
-rw-r--r--drivers/staging/vt6655/michael.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/staging/vt6655/michael.c b/drivers/staging/vt6655/michael.c
index cd39dc0ee8a7..3b00887f7000 100644
--- a/drivers/staging/vt6655/michael.c
+++ b/drivers/staging/vt6655/michael.c
@@ -82,8 +82,7 @@ static void s_vPutUINT32 (unsigned char *p, unsigned long val)
// Convert from unsigned long to unsigned char [] in a portable way
{
unsigned int i;
- for (i=0; i<4; i++)
- {
+ for (i=0; i<4; i++) {
*p++ = (unsigned char) (val & 0xff);
val >>= 8;
}
@@ -114,8 +113,7 @@ static void s_vAppendByte(unsigned char b)
M |= b << (8*nBytesInM);
nBytesInM++;
// Process the word if it is full.
- if (nBytesInM >= 4)
- {
+ if (nBytesInM >= 4) {
L ^= M;
R ^= ROL32(L, 17);
L += R;
@@ -152,8 +150,7 @@ void MIC_vUnInit(void)
void MIC_vAppend(unsigned char *src, unsigned int nBytes)
{
// This is simple
- while (nBytes > 0)
- {
+ while (nBytes > 0) {
s_vAppendByte(*src++);
nBytes--;
}
@@ -168,8 +165,7 @@ void MIC_vGetMIC(unsigned long *pdwL, unsigned long *pdwR)
s_vAppendByte(0);
s_vAppendByte(0);
// and then zeroes until the length is a multiple of 4
- while (nBytesInM != 0)
- {
+ while (nBytesInM != 0) {
s_vAppendByte(0);
}
// The s_vAppendByte function has already computed the result.