Remove invalid comments and correct some typos.

Approved by:	re (kib)
This commit is contained in:
Pawel Jakub Dawidek 2018-10-04 05:57:27 +00:00
parent 0785e8cedc
commit 58554c8d88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339178
2 changed files with 2 additions and 9 deletions

View File

@ -140,7 +140,7 @@ static void
adreq_decode_and_validate_header(struct adreq *adreq)
{
/* Byte-swap only is the sender is using different byte order. */
/* Byte-swap only if the sender is using different byte order. */
if (adreq->adr_byteorder != ADIST_BYTEORDER) {
adreq->adr_byteorder = ADIST_BYTEORDER;
adreq->adr_seq = bswap64(adreq->adr_seq);

View File

@ -512,9 +512,6 @@ keepalive_send(void)
pjdlog_debug(3, "keepalive_send: Request sent.");
}
/*
* Thread sends request to secondary node.
*/
static void *
send_thread(void *arg __unused)
{
@ -574,7 +571,7 @@ static void
adrep_decode_header(struct adrep *adrep)
{
/* Byte-swap only is the receiver is using different byte order. */
/* Byte-swap only if the receiver is using different byte order. */
if (adrep->adrp_byteorder != ADIST_BYTEORDER) {
adrep->adrp_byteorder = ADIST_BYTEORDER;
adrep->adrp_seq = bswap64(adrep->adrp_seq);
@ -582,10 +579,6 @@ adrep_decode_header(struct adrep *adrep)
}
}
/*
* Thread receives answer from secondary node and passes it to ggate_send
* thread.
*/
static void *
recv_thread(void *arg __unused)
{