diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-07-24 22:53:34 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 22:53:34 +0200 |
commit | 7fa897b91a3ea0f16c2873b869d7a0eef05acff4 (patch) | |
tree | b631e7db0745282689fd5a4dbe17ca10e31d5a78 /drivers/ide/ide-iops.c | |
parent | cd740ab0f69f6c94d9c7f916758e308f30a439fa (diff) | |
download | linux-7fa897b91a3ea0f16c2873b869d7a0eef05acff4.tar.bz2 |
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) if (byteswap) { /* convert from big-endian to host byte order */ - for (p = end ; p != s;) { - unsigned short *pp = (unsigned short *) (p -= 2); - *pp = ntohs(*pp); - } + for (p = end ; p != s;) + be16_to_cpus((u16 *)(p -= 2)); } /* strip leading blanks */ while (s != end && *s == ' ') |