зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1003929: Remove some useless declarations in netwerk/srtp found by scan-build, the LLVM/Clang static analyzer. r=mcmanus
This commit is contained in:
Родитель
ed8f0ee038
Коммит
add4694263
|
@ -132,16 +132,10 @@ index_guess(const xtd_seq_num_t *local,
|
|||
uint32_t local_roc = (uint32_t)(*local >> 16);
|
||||
uint16_t local_seq = (uint16_t) *local;
|
||||
#endif
|
||||
#ifdef NO_64BIT_MATH
|
||||
uint32_t guess_roc = ((high32(*guess) << 16) |
|
||||
(low32(*guess) >> 16));
|
||||
uint16_t guess_seq = (uint16_t) (low32(*guess));
|
||||
#else
|
||||
uint32_t guess_roc = (uint32_t)(*guess >> 16);
|
||||
uint16_t guess_seq = (uint16_t) *guess;
|
||||
#endif
|
||||
uint32_t guess_roc;
|
||||
uint16_t guess_seq;
|
||||
int difference;
|
||||
|
||||
|
||||
if (local_seq < seq_num_median) {
|
||||
if (s - local_seq > seq_num_median) {
|
||||
guess_roc = local_roc - 1;
|
||||
|
@ -160,7 +154,7 @@ index_guess(const xtd_seq_num_t *local,
|
|||
}
|
||||
}
|
||||
guess_seq = s;
|
||||
|
||||
|
||||
/* Note: guess_roc is 32 bits, so this generates a 48-bit result! */
|
||||
#ifdef NO_64BIT_MATH
|
||||
*guess = make64(guess_roc >> 16,
|
||||
|
|
|
@ -166,7 +166,6 @@ srtp_stream_init_from_ekt(srtp_stream_t stream,
|
|||
err_status_t err;
|
||||
const uint8_t *master_key;
|
||||
srtp_policy_t srtp_policy;
|
||||
unsigned master_key_len;
|
||||
uint32_t roc;
|
||||
|
||||
/*
|
||||
|
@ -178,7 +177,6 @@ srtp_stream_init_from_ekt(srtp_stream_t stream,
|
|||
|
||||
if (stream->ekt->data->ekt_cipher_type != EKT_CIPHER_AES_128_ECB)
|
||||
return err_status_bad_param;
|
||||
master_key_len = 16;
|
||||
|
||||
/* decrypt the Encrypted Master Key field */
|
||||
master_key = srtcp_packet_get_emk_location(srtcp_hdr, pkt_octet_len);
|
||||
|
|
Загрузка…
Ссылка в новой задаче