mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 04:07:55 +00:00
boards/sim: Fix coding style to let the PR pass
Recently the nxstyle became more restrictive so it got some issues that used to be ignored in the pass. Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
parent
31d3598f6a
commit
17edaf458f
1 changed files with 2 additions and 0 deletions
|
|
@ -179,6 +179,7 @@ int sim_bringup(void)
|
|||
/* Initialized the RAM MTD */
|
||||
|
||||
struct mtd_dev_s *mtd = rammtd_initialize(ramstart, 128 * 1024);
|
||||
|
||||
if (mtd == NULL)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: rammtd_initialize failed\n");
|
||||
|
|
@ -572,6 +573,7 @@ int sim_bringup(void)
|
|||
/* Set up a MAC address for the RNDIS device. */
|
||||
|
||||
uint8_t mac[6];
|
||||
|
||||
mac[0] = (CONFIG_SIM_RNDIS_MACADDR >> (8 * 5)) & 0xff;
|
||||
mac[1] = (CONFIG_SIM_RNDIS_MACADDR >> (8 * 4)) & 0xff;
|
||||
mac[2] = (CONFIG_SIM_RNDIS_MACADDR >> (8 * 3)) & 0xff;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue