diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-10-23 07:37:00 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-10 06:40:38 -0500 |
commit | 51d346068876bf4972efc61969d02958a087f3ee (patch) | |
tree | e676cc8fc89b078c3376c7a1b59fba0bd0839540 | |
parent | 5d0e1194459f70c06d866531ebf19c9e2b75a77e (diff) |
mmc: core: silence a shift wrapping warning
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>
-rw-r--r-- | drivers/mmc/core/sdio_bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index 51e23f502108..60885316afba 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c | |||
@@ -287,7 +287,7 @@ struct sdio_func *sdio_alloc_func(struct mmc_card *card) | |||
287 | static void sdio_acpi_set_handle(struct sdio_func *func) | 287 | static void sdio_acpi_set_handle(struct sdio_func *func) |
288 | { | 288 | { |
289 | struct mmc_host *host = func->card->host; | 289 | struct mmc_host *host = func->card->host; |
290 | u64 addr = (host->slotno << 16) | func->num; | 290 | u64 addr = ((u64)host->slotno << 16) | func->num; |
291 | 291 | ||
292 | acpi_preset_companion(&func->dev, ACPI_COMPANION(host->parent), addr); | 292 | acpi_preset_companion(&func->dev, ACPI_COMPANION(host->parent), addr); |
293 | } | 293 | } |