mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
lib: Slightly simplify server_id_set_disconnected()
The NULL assert is not really required, it will crash nicely if that's not fulfilled. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jun 4 17:34:06 UTC 2021 on sn-devel-184
This commit is contained in:
parent
581ebbcc31
commit
9cb3e4314b
@ -187,14 +187,12 @@ struct server_id server_id_from_string(uint32_t local_vnn,
|
||||
*/
|
||||
void server_id_set_disconnected(struct server_id *id)
|
||||
{
|
||||
SMB_ASSERT(id != NULL);
|
||||
|
||||
id->pid = UINT64_MAX;
|
||||
id->task_id = UINT32_MAX;
|
||||
id->vnn = NONCLUSTER_VNN;
|
||||
id->unique_id = SERVERID_UNIQUE_ID_NOT_TO_VERIFY;
|
||||
|
||||
return;
|
||||
*id = (struct server_id) {
|
||||
.pid = UINT64_MAX,
|
||||
.task_id = UINT32_MAX,
|
||||
.vnn = NONCLUSTER_VNN,
|
||||
.unique_id = SERVERID_UNIQUE_ID_NOT_TO_VERIFY,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user