Message ID | 1380938365-7769-1-git-send-email-festevam@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Chris, On Fri, Oct 4, 2013 at 10:59 PM, Fabio Estevam <festevam@gmail.com> wrote: > From: Fabio Estevam <fabio.estevam@freescale.com> > > Fix the following sparse warning: > > drivers/mmc/host/sdhci-esdhc-imx.c:617:35: warning: Using plain integer as NULL pointer > > Cc: Shawn Guo <shawn.guo@linaro.org> > Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Any comments on this one? Regards, Fabio Estevam -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Fabio, On Fri, Oct 04 2013, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@freescale.com> > > Fix the following sparse warning: > > drivers/mmc/host/sdhci-esdhc-imx.c:617:35: warning: Using plain integer as NULL pointer > > Cc: Shawn Guo <shawn.guo@linaro.org> > Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Thanks, pushed to mmc-next for 3.14. - Chris.
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index b9899e9..086ea52 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -614,7 +614,7 @@ static void esdhc_request_done(struct mmc_request *mrq) static int esdhc_send_tuning_cmd(struct sdhci_host *host, u32 opcode) { struct mmc_command cmd = {0}; - struct mmc_request mrq = {0}; + struct mmc_request mrq = { NULL }; struct mmc_data data = {0}; struct scatterlist sg; char tuning_pattern[ESDHC_TUNING_BLOCK_PATTERN_LEN];