wireless/ieee802154: Fix a warning found in build testing. Mouse input: Cosmetic changes while reviewing logic.

This commit is contained in:
Gregory Nutt 2017-11-03 09:21:19 -06:00
parent f562bf0fbe
commit ac40630452
3 changed files with 2 additions and 20 deletions

View File

@ -1159,7 +1159,7 @@ static int usbhost_mouse_poll(int argc, char *argv[])
if (buttons != priv->buttons || usbhost_threshold(priv)) if (buttons != priv->buttons || usbhost_threshold(priv))
#endif #endif
{ {
/* We get here when either there is a meaning button /* We get here when either there is a meaningful button
* change and/or a significant movement of the mouse. We * change and/or a significant movement of the mouse. We
* are going to report the mouse event. * are going to report the mouse event.
* *

View File

@ -49,14 +49,6 @@
#ifdef CONFIG_NX_XYINPUT #ifdef CONFIG_NX_XYINPUT
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Private Types
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Private Data * Private Data
****************************************************************************/ ****************************************************************************/
@ -66,14 +58,6 @@ static struct nxgl_point_s g_mrange;
static uint8_t g_mbutton; static uint8_t g_mbutton;
static struct nxbe_window_s *g_mwnd; static struct nxbe_window_s *g_mwnd;
/****************************************************************************
* Public Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/

View File

@ -443,12 +443,10 @@ static int macnet_notify(FAR struct mac802154_maccb_s *maccb,
#endif #endif
} }
#endif #endif
nxsem_post(&priv->md_exclsem);
return OK;
} }
nxsem_post(&priv->md_exclsem); nxsem_post(&priv->md_exclsem);
return OK;
} }
/**************************************************************************** /****************************************************************************