diff options
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r-- | drivers/ide/ide-iops.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index 07da5fb9eaff..8aae91764513 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -510,10 +510,8 @@ void ide_fixstring (u8 *s, const int bytecount, const int byteswap) | |||
510 | 510 | ||
511 | if (byteswap) { | 511 | if (byteswap) { |
512 | /* convert from big-endian to host byte order */ | 512 | /* convert from big-endian to host byte order */ |
513 | for (p = end ; p != s;) { | 513 | for (p = end ; p != s;) |
514 | unsigned short *pp = (unsigned short *) (p -= 2); | 514 | be16_to_cpus((u16 *)(p -= 2)); |
515 | *pp = ntohs(*pp); | ||
516 | } | ||
517 | } | 515 | } |
518 | /* strip leading blanks */ | 516 | /* strip leading blanks */ |
519 | while (s != end && *s == ' ') | 517 | while (s != end && *s == ' ') |