Changes for clean RGMP compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3598 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
923b9b3ce1
commit
1a51178b13
|
@ -172,11 +172,11 @@ static uart_dev_t *up_alloc_com(unsigned int base, int irq)
|
|||
uart_dev_t *dev;
|
||||
struct up_dev_s *priv;
|
||||
|
||||
priv = kzmalloc(sizeof(struct up_dev_s));
|
||||
priv = kzalloc(sizeof(struct up_dev_s));
|
||||
if (priv == NULL)
|
||||
goto err0;
|
||||
|
||||
dev = kzmalloc(sizeof(uart_dev_t));
|
||||
dev = kzalloc(sizeof(uart_dev_t));
|
||||
if (dev == NULL)
|
||||
goto err1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue