Skip to contentSkip to conversation

mmc: trivial annotation of 'blocks'

PATCH Applied Harvey Harrison 2 participants 2 messages Oct 23, 2008 – Oct 26, 2008 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: trivial annotation of 'blocks'

sg_init_one is reading a be32, annotate as such.

---
 drivers/mmc/card/block.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/mmc/card/block.c +2 -4
index 3d067c3..903c8aa 100644
@@ -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)
Signature · 1 line
1.6.0.3.723.g757e
#1 lore raw
Quoted 4 lines · On Wed, 22 Oct 2008 17:09:00 -0700 Harvey Harrison <[email protected]>…

sg_init_one is reading a be32, annotate as such.

---

Applied, thanks.

Signature · 6 lines
     -- Pierre Ossman

  WARNING: This correspondence is being monitored by the
  Swedish government. Make sure your server uses encryption
  for SMTP traffic and consider using PGP for end-to-end
  encryption.