diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-22 17:09:00 -0700 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2008-12-31 18:18:11 +0100 |
commit | b7a03210b7b381e06f71751cb9addfae7704489c (patch) | |
tree | 0718b450c2ce23ab76acb50d54b0c9a73a5daa93 /drivers/mmc/card | |
parent | 092f82edbe96d0a08e1d10436927e89fa101fe0d (diff) | |
download | linux-b7a03210b7b381e06f71751cb9addfae7704489c.tar.bz2 |
mmc: trivial annotation of 'blocks'
sg_init_one is reading a be32, annotate as such.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r-- | drivers/mmc/card/block.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 3d067c35185d..903c8aae54bb 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -145,7 +145,7 @@ struct mmc_blk_request { static u32 mmc_sd_num_wr_blocks(struct mmc_card *card) { int err; - u32 blocks; + __be32 blocks; struct mmc_request mrq; struct mmc_command cmd; @@ -204,9 +204,7 @@ static u32 mmc_sd_num_wr_blocks(struct mmc_card *card) if (cmd.error || data.error) return (u32)-1; - blocks = ntohl(blocks); - - return blocks; + return ntohl(blocks); } static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req) |