diff options
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 { | |||
145 | static u32 mmc_sd_num_wr_blocks(struct mmc_card *card) | 145 | static u32 mmc_sd_num_wr_blocks(struct mmc_card *card) |
146 | { | 146 | { |
147 | int err; | 147 | int err; |
148 | u32 blocks; | 148 | __be32 blocks; |
149 | 149 | ||
150 | struct mmc_request mrq; | 150 | struct mmc_request mrq; |
151 | struct mmc_command cmd; | 151 | struct mmc_command cmd; |
@@ -204,9 +204,7 @@ static u32 mmc_sd_num_wr_blocks(struct mmc_card *card) | |||
204 | if (cmd.error || data.error) | 204 | if (cmd.error || data.error) |
205 | return (u32)-1; | 205 | return (u32)-1; |
206 | 206 | ||
207 | blocks = ntohl(blocks); | 207 | return ntohl(blocks); |
208 | |||
209 | return blocks; | ||
210 | } | 208 | } |
211 | 209 | ||
212 | static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req) | 210 | static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req) |