提交 a50145f9 编写于 作者: F Fabio Estevam 提交者: Chris Ball

mmc: sdhci-esdhc-imx: Use NULL instead of zero

Fix the following sparse warning:

drivers/mmc/host/sdhci-esdhc-imx.c:617:35: warning: Using plain integer as NULL pointer
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 63c21180
...@@ -718,7 +718,7 @@ static void esdhc_request_done(struct mmc_request *mrq) ...@@ -718,7 +718,7 @@ static void esdhc_request_done(struct mmc_request *mrq)
static int esdhc_send_tuning_cmd(struct sdhci_host *host, u32 opcode) static int esdhc_send_tuning_cmd(struct sdhci_host *host, u32 opcode)
{ {
struct mmc_command cmd = {0}; struct mmc_command cmd = {0};
struct mmc_request mrq = {0}; struct mmc_request mrq = {NULL};
struct mmc_data data = {0}; struct mmc_data data = {0};
struct scatterlist sg; struct scatterlist sg;
char tuning_pattern[ESDHC_TUNING_BLOCK_PATTERN_LEN]; char tuning_pattern[ESDHC_TUNING_BLOCK_PATTERN_LEN];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册