boards/arm/lpc43xx/bambino-200e/src/lpc43_appinit.c: Eliminate a warning found in build testing.

Author: Alan Carvalho de Assis <acassis@gmail.com>

    Fix small typos and check against nxstyle

Author: Gregory Nutt <gnutt@nuttx.org>

    boards/arm/lpc43xx/bambino-200e/src/lpc43_appinit.c: Eliminate a warning found in build testing.

    The removal of (void) from all functions whose return value has been ignored has introduced several new warnings into the build test output.  For example in lpc3_appinit(), I now see this:

        #  define nsh_spifi_initialize() (OK)

    and

        nsh_spifi_initialize();

    which generaterd a new warning:  "warning: statement with no effect [-Wunused-value]".  This commit fixes that warning.
This commit is contained in:
Gregory Nutt 2020-01-07 19:40:44 -03:00 committed by Alan Carvalho de Assis
parent afc2bffb7d
commit 208463e7c5

View File

@ -1,9 +1,9 @@
/****************************************************************************
* boards/arm/lpc43xx/bambino-200e/src/lpc43_appinit.c
*
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Copyright (C) 2016, 2020 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
* Alan Carvalho de Assis acassis@gmail.com [nuttx] <nuttx@googlegroups.com>
* Alan Carvalho de Assis acassis@gmail.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -135,8 +135,6 @@ static int nsh_spifi_initialize(void)
return OK;
}
#else
# define nsh_spifi_initialize() (OK)
#endif
/****************************************************************************
@ -173,9 +171,15 @@ int board_app_initialize(uintptr_t arg)
#endif
int ret = 0;
#ifdef CONFIG_LPC43_SPIFI
/* Initialize the SPIFI block device */
nsh_spifi_initialize();
ret = nsh_spifi_initialize();
if (ret != OK)
{
syslog(LOG_ERR, "ERROR: nsh_spifi_initialize() fails: %d\n", ret);
}
#endif
#ifdef HAVE_MMCSD
/* Get an instance of the SDIO interface */