]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mmc: trivial annotation of 'blocks'
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 23 Oct 2008 00:09:00 +0000 (17:09 -0700)
committerPierre Ossman <drzeus@drzeus.cx>
Wed, 31 Dec 2008 17:18:11 +0000 (18:18 +0100)
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>
drivers/mmc/card/block.c

index 3d067c35185db9704157d8bc4bddbecc20bf22c7..903c8aae54bb2ba6193d3a8366380c7ec08a4f63 100644 (file)
@@ -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)