Remove extraneous parens

This commit is contained in:
Rafaël Carré 2012-05-06 23:10:19 -04:00
parent aaf9a1be49
commit 65bb8e4452
5 changed files with 6 additions and 6 deletions

View file

@ -592,7 +592,7 @@ static void play_hop(int direction)
#endif
return;
}
else if ((direction == -1 && elapsed < step))
else if (direction == -1 && elapsed < step)
{
elapsed = 0;
}

View file

@ -459,7 +459,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
selected = get_menu_selection(gui_synclist_get_sel_pos(&lists),menu);
temp = menu->submenus[selected];
type = (temp->flags&MENU_TYPE_MASK);
if ((type == MT_SETTING_W_TEXT || type == MT_SETTING))
if (type == MT_SETTING_W_TEXT || type == MT_SETTING)
{
#ifdef HAVE_QUICKSCREEN
MENUITEM_STRINGLIST(quickscreen_able_option,

View file

@ -333,7 +333,7 @@ static int info_action_callback(int action, struct gui_synclist *lists)
{
if (action == ACTION_STD_CANCEL)
return action;
else if ((action == ACTION_STD_OK)
else if (action == ACTION_STD_OK
#ifdef HAVE_HOTSWAP
|| action == SYS_FS_CHANGED
#endif

View file

@ -1596,9 +1596,9 @@ static void randomize_dos_name(unsigned char *name)
while(i++ < 8)
{
/* hunt for ~ and where to put it */
if((!tilde) && (*nameptr == '~'))
if(!tilde && *nameptr == '~')
tilde = nameptr;
if((!lastpt) && ((*nameptr == ' ' || *nameptr == '~')))
if(!lastpt && (*nameptr == ' ' || *nameptr == '~'))
lastpt = nameptr;
nameptr++;
}

View file

@ -82,7 +82,7 @@ void button_int(void)
{
int_btn |= BUTTON_TAP;
}
else if ((data[0] == MEP_ABSOLUTE_HEADER))
else if (data[0] == MEP_ABSOLUTE_HEADER)
{
if (data[1] & MEP_FINGER)
{