diff options
Diffstat (limited to 'drivers/net/ethernet/amd/declance.c')
| -rw-r--r-- | drivers/net/ethernet/amd/declance.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/ethernet/amd/declance.c b/drivers/net/ethernet/amd/declance.c index 1b89f1a9127e..57397295887c 100644 --- a/drivers/net/ethernet/amd/declance.c +++ b/drivers/net/ethernet/amd/declance.c | |||
| @@ -344,8 +344,8 @@ static void cp_to_buf(const int type, void *to, const void *from, int len) | |||
| 344 | } | 344 | } |
| 345 | 345 | ||
| 346 | clen = len & 1; | 346 | clen = len & 1; |
| 347 | rtp = tp; | 347 | rtp = (unsigned char *)tp; |
| 348 | rfp = fp; | 348 | rfp = (const unsigned char *)fp; |
| 349 | while (clen--) { | 349 | while (clen--) { |
| 350 | *rtp++ = *rfp++; | 350 | *rtp++ = *rfp++; |
| 351 | } | 351 | } |
| @@ -372,8 +372,8 @@ static void cp_to_buf(const int type, void *to, const void *from, int len) | |||
| 372 | * do the rest, if any. | 372 | * do the rest, if any. |
| 373 | */ | 373 | */ |
| 374 | clen = len & 15; | 374 | clen = len & 15; |
| 375 | rtp = (unsigned char *) tp; | 375 | rtp = (unsigned char *)tp; |
| 376 | rfp = (unsigned char *) fp; | 376 | rfp = (const unsigned char *)fp; |
| 377 | while (clen--) { | 377 | while (clen--) { |
| 378 | *rtp++ = *rfp++; | 378 | *rtp++ = *rfp++; |
| 379 | } | 379 | } |
| @@ -403,8 +403,8 @@ static void cp_from_buf(const int type, void *to, const void *from, int len) | |||
| 403 | 403 | ||
| 404 | clen = len & 1; | 404 | clen = len & 1; |
| 405 | 405 | ||
| 406 | rtp = tp; | 406 | rtp = (unsigned char *)tp; |
| 407 | rfp = fp; | 407 | rfp = (const unsigned char *)fp; |
| 408 | 408 | ||
| 409 | while (clen--) { | 409 | while (clen--) { |
| 410 | *rtp++ = *rfp++; | 410 | *rtp++ = *rfp++; |
| @@ -433,8 +433,8 @@ static void cp_from_buf(const int type, void *to, const void *from, int len) | |||
| 433 | * do the rest, if any. | 433 | * do the rest, if any. |
| 434 | */ | 434 | */ |
| 435 | clen = len & 15; | 435 | clen = len & 15; |
| 436 | rtp = (unsigned char *) tp; | 436 | rtp = (unsigned char *)tp; |
| 437 | rfp = (unsigned char *) fp; | 437 | rfp = (const unsigned char *)fp; |
| 438 | while (clen--) { | 438 | while (clen--) { |
| 439 | *rtp++ = *rfp++; | 439 | *rtp++ = *rfp++; |
| 440 | } | 440 | } |
