From 7e5bb6283dbfe9c44d5be85b2cd04675153c011e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 28 Sep 2016 08:20:58 +0800 Subject: COSMETIC: 'if' is not a function, so there is space before '(' Change-Id: Ic22623dffce998d70a3c67aa6e445de98f558ed7 --- openbsc/src/gprs/gprs_llc.c | 4 ++-- openbsc/src/gprs/gprs_sndcp.c | 2 +- openbsc/src/gprs/sgsn_libgtp.c | 4 ++-- openbsc/src/libmgcp/mgcp_protocol.c | 2 +- openbsc/src/osmo-bsc/osmo_bsc_sccp.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c index ff771b8fa..5b1f33329 100644 --- a/openbsc/src/gprs/gprs_llc.c +++ b/openbsc/src/gprs/gprs_llc.c @@ -1066,7 +1066,7 @@ int gprs_llgmm_reset(struct gprs_llc_llme *llme) /* Generate XID message */ xid_bytes_len = gprs_llc_generate_xid_for_gmm_reset(xid_bytes, sizeof(xid_bytes),llme->iov_ui,llme); - if(xid_bytes_len < 0) + if (xid_bytes_len < 0) return -EINVAL; xid = msgb_put(msg, xid_bytes_len); memcpy(xid, xid_bytes, xid_bytes_len); @@ -1099,7 +1099,7 @@ int gprs_llgmm_reset_oldmsg(struct msgb* oldmsg, uint8_t sapi, /* Generate XID message */ xid_bytes_len = gprs_llc_generate_xid_for_gmm_reset(xid_bytes, sizeof(xid_bytes),llme->iov_ui,llme); - if(xid_bytes_len < 0) + if (xid_bytes_len < 0) return -EINVAL; xid = msgb_put(msg, xid_bytes_len); memcpy(xid, xid_bytes, xid_bytes_len); diff --git a/openbsc/src/gprs/gprs_sndcp.c b/openbsc/src/gprs/gprs_sndcp.c index 0b18f816e..1cbeede09 100644 --- a/openbsc/src/gprs/gprs_sndcp.c +++ b/openbsc/src/gprs/gprs_sndcp.c @@ -779,7 +779,7 @@ int sndcp_llunitdata_ind(struct msgb *msg, struct gprs_llc_lle *lle, /* FIXME: move this RA_ID up to the LLME or even higher */ bssgp_parse_cell_id(&sne->ra_id, msgb_bcid(msg)); - if(scomph) { + if (scomph) { sne->defrag.pcomp = scomph->pcomp; sne->defrag.dcomp = scomph->dcomp; sne->defrag.proto = lle->llme->comp.proto; diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c index 9f6532532..127ee30ba 100644 --- a/openbsc/src/gprs/sgsn_libgtp.c +++ b/openbsc/src/gprs/sgsn_libgtp.c @@ -328,13 +328,13 @@ static int send_act_pdp_cont_acc(struct sgsn_pdp_ctx *pctx) /* Send PDP CTX ACT to MS */ rc = gsm48_tx_gsm_act_pdp_acc(pctx); - if(rc < 0) + if (rc < 0) return rc; /* Send SNDCP XID to MS */ lle = &pctx->mm->gb.llme->lle[pctx->sapi]; rc = sndcp_sn_xid_req(lle,pctx->nsapi); - if(rc < 0) + if (rc < 0) return rc; return 0; diff --git a/openbsc/src/libmgcp/mgcp_protocol.c b/openbsc/src/libmgcp/mgcp_protocol.c index ff0fc3e7e..2e728cb75 100644 --- a/openbsc/src/libmgcp/mgcp_protocol.c +++ b/openbsc/src/libmgcp/mgcp_protocol.c @@ -818,7 +818,7 @@ mgcp_header_done: if (osmux_cid >= 0) { endp->osmux.cid = osmux_cid; endp->osmux.state = OSMUX_STATE_NEGOTIATING; - } else if(endp->cfg->osmux == OSMUX_USAGE_ONLY) { + } else if (endp->cfg->osmux == OSMUX_USAGE_ONLY) { LOGP(DMGCP, LOGL_ERROR, "Osmux only and no osmux offered on 0x%x\n", ENDPOINT_NUMBER(endp)); goto error2; diff --git a/openbsc/src/osmo-bsc/osmo_bsc_sccp.c b/openbsc/src/osmo-bsc/osmo_bsc_sccp.c index 33c737f52..86b27be72 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_sccp.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_sccp.c @@ -80,7 +80,7 @@ static void msc_outgoing_sccp_state(struct sccp_connection *conn, int old_state) if (conn->connection_state >= SCCP_CONNECTION_STATE_RELEASE_COMPLETE) { con_data = (struct osmo_bsc_sccp_con *) conn->data_ctx; - if(con_data->conn) { + if (con_data->conn) { LOGP(DMSC, LOGL_ERROR, "ERROR: The lchan is still associated.\n"); gsm0808_clear(con_data->conn); -- cgit v1.2.3