From 65bb8e4452575164a36fbd503bb3d23f7061b9d1 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 6 May 2012 23:10:19 -0400 Subject: Remove extraneous parens --- apps/gui/wps.c | 2 +- apps/menu.c | 2 +- apps/menus/main_menu.c | 2 +- firmware/drivers/fat.c | 4 ++-- firmware/target/arm/philips/hdd6330/button-hdd6330.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 88918e16d3..25c97fe613 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -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; } diff --git a/apps/menu.c b/apps/menu.c index b813f03dce..7ab7b56152 100644 --- a/apps/menu.c +++ b/apps/menu.c @@ -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, diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index b7472a6849..f4b754364b 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c @@ -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 diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index f76b10c078..51b0cba372 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c @@ -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++; } diff --git a/firmware/target/arm/philips/hdd6330/button-hdd6330.c b/firmware/target/arm/philips/hdd6330/button-hdd6330.c index 924069bcbd..75e14e375f 100644 --- a/firmware/target/arm/philips/hdd6330/button-hdd6330.c +++ b/firmware/target/arm/philips/hdd6330/button-hdd6330.c @@ -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) { -- cgit v1.2.3