Skip to content

Commit 7c42dbf

Browse files
Wolfram Sangstorulf
authored andcommitted
mmc: tmio: make a cast explicit
Sparse complains about the implicit cast. Making it explicit is indeed better coding style. Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent a05c846 commit 7c42dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/tmio_mmc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static inline void sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr,
259259

260260
static inline void sd_ctrl_write32_as_16_and_16(struct tmio_mmc_host *host, int addr, u32 val)
261261
{
262-
writew(val, host->ctl + (addr << host->bus_shift));
262+
writew(val & 0xffff, host->ctl + (addr << host->bus_shift));
263263
writew(val >> 16, host->ctl + ((addr + 2) << host->bus_shift));
264264
}
265265

0 commit comments

Comments
 (0)