Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235656
b: refs/heads/master
c: f3d5049
h: refs/heads/master
v: v3
  • Loading branch information
Javier Martinez Canillas authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent dc19f1e commit 5d35c9a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b5b4e17e58a0c8ddfd5ad60e65f924fb00b60ef
refs/heads/master: f3d5049ccdb57d14712f7cba27b0dd0a860961d7
16 changes: 10 additions & 6 deletions trunk/drivers/staging/keucr/smilecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,17 @@ BYTE *buf;
BYTE *redundant_ecc;
BYTE *calculate_ecc;
{
DWORD err;
DWORD err;

err=correct_data(buf,redundant_ecc,*(calculate_ecc+1),*(calculate_ecc),*(calculate_ecc+2));
if (err==1) StringCopy(calculate_ecc,redundant_ecc,3);
if (err==0 || err==1 || err==2)
return(0);
return(-1);
err = correct_data(buf, redundant_ecc, *(calculate_ecc + 1),
*(calculate_ecc), *(calculate_ecc + 2));
if (err == 1)
memcpy(calculate_ecc, redundant_ecc, 3);

if (err == 0 || err == 1 || err == 2)
return 0;

return -1;
}

void _Calculate_D_SwECC(buf,ecc)
Expand Down

0 comments on commit 5d35c9a

Please sign in to comment.