mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-12 07:34:08 +08:00
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 <lidza.louina@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1da4ee2050
commit
f1900e78cf
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user