diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-07-24 16:53:34 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:34 -0400 |
commit | 7fa897b91a3ea0f16c2873b869d7a0eef05acff4 (patch) | |
tree | b631e7db0745282689fd5a4dbe17ca10e31d5a78 /drivers/ide/ide-iops.c | |
parent | cd740ab0f69f6c94d9c7f916758e308f30a439fa (diff) |
ide: trivial sparse annotations
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
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 == ' ') |