payloads/libpayload: Add spaces around '=='

Change-Id: Ie1da925aceb01c2d21b472bf171000803004578f
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/25856
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Elyes HAOUAS 2018-04-26 10:11:10 +02:00 committed by Patrick Georgi
parent 12f345d671
commit 00877386ee
7 changed files with 13 additions and 13 deletions

View File

@ -43,7 +43,7 @@ NCURSES_IMPEXP int NCURSES_API set_field_ ## name (FIELD * field, chtype attr)\
{\
int res = E_BAD_ARGUMENT;\
T((T_CALLED("set_field_" #name "(%p,%s)"), field, _traceattr(attr)));\
if ( attr==A_NORMAL || ((attr & A_ATTRIBUTES)==attr) )\
if ( attr == A_NORMAL || ((attr & A_ATTRIBUTES) == attr) )\
{\
Normalize_Field( field );\
if (field != 0) \

View File

@ -200,7 +200,7 @@ static int FE_Delete_Previous(FORM *);
/* Logic to determine whether or not we are on the first position in the
current field */
#define First_Position_In_Current_Field(form) \
(((form)->currow==0) && ((form)->curcol==0))
(((form)->currow == 0) && ((form)->curcol == 0))
#define Minimum(a,b) (((a)<=(b)) ? (a) : (b))
#define Maximum(a,b) (((a)>=(b)) ? (a) : (b))
@ -2586,7 +2586,7 @@ FE_New_Line(FORM *form)
{
if (Last_Row && !Field_Grown(field, 1))
{
/* N.B.: due to the logic in the 'if', LastRow==TRUE
/* N.B.: due to the logic in the 'if', LastRow == TRUE
means here that the field is growable and not
a single-line field */
returnCode(E_SYSTEM_ERROR);

View File

@ -52,7 +52,7 @@ MODULE_ID("$Id: m_attribs.c,v 1.16 2010/01/23 21:16:54 tom Exp $")
NCURSES_IMPEXP int NCURSES_API set_menu_ ## name (MENU* menu, chtype attr) \
{\
T((T_CALLED("set_menu_" #name "(%p,%s)"), menu, _traceattr(attr))); \
if (!(attr==A_NORMAL || (attr & A_ATTRIBUTES)==attr))\
if (!(attr == A_NORMAL || (attr & A_ATTRIBUTES) == attr))\
RETURN(E_BAD_ARGUMENT);\
if (menu && ( menu -> name != attr))\
{\

View File

@ -180,7 +180,7 @@ _nc_Match_Next_Character_In_Item_Name
or PREV_PATTERN scan this means, that there was no additional match.
If we searched with an expanded new pattern, we should never reach
this point, because if the expanded pattern matches also the actual
item we will find it in the first attempt (passed==FALSE) and we
item we will find it in the first attempt (passed == FALSE) and we
will never cycle through the whole item array.
*/
assert(ch == 0 || ch == BS);

View File

@ -149,14 +149,14 @@ int PDC_get_key(void)
#if IS_ENABLED(CONFIG_LP_PC_KEYBOARD)
if ((curses_flags & F_ENABLE_CONSOLE) &&
keyboard_havechar() && (c==0)) {
keyboard_havechar() && (c == 0)) {
c = keyboard_getchar();
}
#endif
#if IS_ENABLED(CONFIG_LP_SERIAL_CONSOLE)
if ((curses_flags & F_ENABLE_SERIAL) &&
serial_havechar() && (c==0)) {
serial_havechar() && (c == 0)) {
c = cook_serial(serial_getchar());
}
#endif

View File

@ -351,7 +351,7 @@ static int ehci_bulk (endpoint_t *ep, int size, u8 *src, int finalize)
u8 *end = src + size;
int remaining = size;
int endp = ep->endpoint & 0xf;
int pid = (ep->direction==IN)?EHCI_IN:EHCI_OUT;
int pid = (ep->direction == IN)?EHCI_IN:EHCI_OUT;
int hubaddr = 0, hubport = 0;
if (ep->dev->speed < 2) {

View File

@ -373,7 +373,7 @@ ohci_control (usbdev_t *dev, direction_t dir, int drlen, void *setup, int dalen,
int first_page = (unsigned long)data / 4096;
int last_page = (unsigned long)(data+dalen-1)/4096;
if (last_page < first_page) last_page = first_page;
int pages = (dalen==0)?0:(last_page - first_page + 1);
int pages = (dalen == 0)?0:(last_page - first_page + 1);
/* First TD. */
td_t *const first_td = (td_t *)dma_memalign(sizeof(td_t), sizeof(td_t));
@ -467,7 +467,7 @@ ohci_control (usbdev_t *dev, direction_t dir, int drlen, void *setup, int dalen,
OHCI_INST(dev->controller)->opreg->HcCommandStatus = ControlListFilled;
int result = wait_for_ed(dev, head,
(dalen==0)?0:(last_page - first_page + 1));
(dalen == 0)?0:(last_page - first_page + 1));
/* Wait some frames before and one after disabling list access. */
mdelay(4);
OHCI_INST(dev->controller)->opreg->HcControl &= ~ControlListEnable;
@ -509,7 +509,7 @@ ohci_bulk (endpoint_t *ep, int dalen, u8 *src, int finalize)
int first_page = (unsigned long)data / 4096;
int last_page = (unsigned long)(data+dalen-1)/4096;
if (last_page < first_page) last_page = first_page;
int pages = (dalen==0)?0:(last_page - first_page + 1);
int pages = (dalen == 0)?0:(last_page - first_page + 1);
int td_count = (pages+1)/2;
if (finalize && ((dalen % ep->maxpacketsize) == 0)) {
@ -571,7 +571,7 @@ ohci_bulk (endpoint_t *ep, int dalen, u8 *src, int finalize)
memset((void*)head, 0, sizeof(*head));
head->config = (ep->dev->address << ED_FUNC_SHIFT) |
((ep->endpoint & 0xf) << ED_EP_SHIFT) |
(((ep->direction==IN)?OHCI_IN:OHCI_OUT) << ED_DIR_SHIFT) |
(((ep->direction == IN)?OHCI_IN:OHCI_OUT) << ED_DIR_SHIFT) |
(ep->dev->speed?ED_LOWSPEED:0) |
(ep->maxpacketsize << ED_MPS_SHIFT);
head->tail_pointer = virt_to_phys(cur);
@ -588,7 +588,7 @@ ohci_bulk (endpoint_t *ep, int dalen, u8 *src, int finalize)
OHCI_INST(ep->dev->controller)->opreg->HcCommandStatus = BulkListFilled;
int result = wait_for_ed(ep->dev, head,
(dalen==0)?0:(last_page - first_page + 1));
(dalen == 0)?0:(last_page - first_page + 1));
/* Wait some frames before and one after disabling list access. */
mdelay(4);
OHCI_INST(ep->dev->controller)->opreg->HcControl &= ~BulkListEnable;