mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user