mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Update checkstyle workflow env to ubuntu-20.04
- `checkstyle` workflow uses ubuntu-20.04 environment - improved `mancheck.sh` readability Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: szubersk <szuberskidamian@gmail.com> Closes #12713
This commit is contained in:
committed by
Tony Hutter
parent
cc40a67cf8
commit
8464de1315
@@ -533,12 +533,14 @@ nvt_add_nvpair(nvlist_t *nvl, nvpair_t *nvp)
|
||||
uint64_t index = hash & (priv->nvp_nbuckets - 1);
|
||||
|
||||
ASSERT3U(index, <, priv->nvp_nbuckets);
|
||||
// cppcheck-suppress nullPointerRedundantCheck
|
||||
i_nvp_t *bucket = tab[index];
|
||||
|
||||
/* insert link at the beginning of the bucket */
|
||||
i_nvp_t *new_entry = NVPAIR2I_NVP(nvp);
|
||||
ASSERT3P(new_entry->nvi_hashtable_next, ==, NULL);
|
||||
new_entry->nvi_hashtable_next = bucket;
|
||||
// cppcheck-suppress nullPointerRedundantCheck
|
||||
tab[index] = new_entry;
|
||||
|
||||
priv->nvp_nentries++;
|
||||
@@ -3220,6 +3222,8 @@ nvs_xdr_nvl_fini(nvstream_t *nvs)
|
||||
static int
|
||||
nvs_xdr_nvp_op(nvstream_t *nvs, nvpair_t *nvp)
|
||||
{
|
||||
ASSERT(nvs != NULL && nvp != NULL);
|
||||
|
||||
data_type_t type;
|
||||
char *buf;
|
||||
char *buf_end = (char *)nvp + nvp->nvp_size;
|
||||
@@ -3228,7 +3232,7 @@ nvs_xdr_nvp_op(nvstream_t *nvs, nvpair_t *nvp)
|
||||
bool_t ret = FALSE;
|
||||
XDR *xdr = nvs->nvs_private;
|
||||
|
||||
ASSERT(xdr != NULL && nvp != NULL);
|
||||
ASSERT(xdr != NULL);
|
||||
|
||||
/* name string */
|
||||
if ((buf = NVP_NAME(nvp)) >= buf_end)
|
||||
|
||||
Reference in New Issue
Block a user