From: Lidza Louina Date: Tue, 20 Aug 2013 18:15:35 +0000 (-0400) Subject: staging: dgnc: driver.c: fixes warning about assigning pointer X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f1900e78cf599df78bbd7fe7762dd1a22d3c56a0;p=openwrt%2Fstaging%2Fblogic.git staging: dgnc: driver.c: fixes warning about assigning pointer This patch fixes a warning associated with assigining a pointer in the dgnc_mbuf function. Signed-off-by: Lidza Louina Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index e8de7a411255..e5d021f8bd96 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -943,7 +943,7 @@ static void dgnc_mbuf(struct board_t *brd, const char *fmt, ...) { memcpy(brd->msgbuf, buf, strlen(buf)); brd->msgbuf += strlen(buf); - *brd->msgbuf = (char) NULL; + *brd->msgbuf = '\0'; DGNC_UNLOCK(dgnc_global_lock, flags); }