Fixed two issues found by clang, pointed out by Holger
This commit is contained in:
parent
6681bb8d0c
commit
ba1cd9bbc2
|
@ -235,6 +235,9 @@ int gprs_bssgp_pcu_rx_ptp(struct msgb *msg, struct tlv_parsed *tp, struct bssgp_
|
|||
uint8_t pdu_type = bgph->pdu_type;
|
||||
unsigned rc = 0;
|
||||
|
||||
if (!bctx)
|
||||
return -EINVAL;
|
||||
|
||||
/* If traffic is received on a BVC that is marked as blocked, the
|
||||
* received PDU shall not be accepted and a STATUS PDU (Cause value:
|
||||
* BVC Blocked) shall be sent to the peer entity on the signalling BVC */
|
||||
|
|
|
@ -370,7 +370,7 @@ int alloc_algorithm_b(struct gprs_rlcmac_tbf *old_tbf,
|
|||
uint8_t tx_win_min, tx_win_max, tx_range;
|
||||
uint8_t rx_window = 0, tx_window = 0;
|
||||
const char *digit[10] = { "0","1","2","3","4","5","6","7","8","9" };
|
||||
uint8_t usf[8];
|
||||
int8_t usf[8] = { -1, -1, -1, -1, -1, -1, -1, -1 }; /* must be signed */
|
||||
int8_t tsc = -1; /* must be signed */
|
||||
uint8_t i, ts;
|
||||
|
||||
|
|
Loading…
Reference in New Issue