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>
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;
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)