Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7a03210 authored by Harvey Harrison's avatar Harvey Harrison Committed by Pierre Ossman
Browse files

mmc: trivial annotation of 'blocks'



sg_init_one is reading a be32, annotate as such.

Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 092f82ed
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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)