Skip to content

Commit

Permalink
mmc: core: silence a shift wrapping warning
Browse files Browse the repository at this point in the history
Presumably ->slotno is normally fairly small and the shift doesn't wrap
but static checkers will complain about it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Dan Carpenter authored and Ulf Hansson committed Nov 10, 2014
1 parent 5d0e119 commit 51d3460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ struct sdio_func *sdio_alloc_func(struct mmc_card *card)
static void sdio_acpi_set_handle(struct sdio_func *func)
{
struct mmc_host *host = func->card->host;
u64 addr = (host->slotno << 16) | func->num;
u64 addr = ((u64)host->slotno << 16) | func->num;

acpi_preset_companion(&func->dev, ACPI_COMPANION(host->parent), addr);
}
Expand Down

0 comments on commit 51d3460

Please sign in to comment.