aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/mmc_spi.c
diff options
context:
space:
mode:
authorPantelis Antoniou2014-03-10 20:05:51 +0200
committerPantelis Antoniou2014-03-24 11:32:10 +0200
commit22cb7d334e296288e53057467dfee26858275516 (patch)
treec8a1348c5f490f8cc5c88e601fd89f336ae85475 /drivers/mmc/mmc_spi.c
parentab769f227f79bedae7840f99b6c0c4d66aafc78e (diff)
mmc: Convert mmc struct's name array to a pointer
Using an array is pointless; even more pointless (and scary) is using sprintf to fill it without a format string. Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'drivers/mmc/mmc_spi.c')
-rw-r--r--drivers/mmc/mmc_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c
index 0a0f894bcb9..e94de37c8b4 100644
--- a/drivers/mmc/mmc_spi.c
+++ b/drivers/mmc/mmc_spi.c
@@ -274,7 +274,7 @@ struct mmc *mmc_spi_init(uint bus, uint cs, uint speed, uint mode)
free(mmc);
return NULL;
}
- sprintf(mmc->name, "MMC_SPI");
+ mmc->name = "MMC_SPI";
mmc->ops = &mmc_spi_ops;
mmc->host_caps = MMC_MODE_SPI;