Skip to content

Commit

Permalink
mmc: trivial annotation of 'blocks'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Harvey Harrison authored and Pierre Ossman committed Dec 31, 2008
1 parent 092f82e commit b7a0321
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/mmc/card/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b7a0321

Please sign in to comment.