Print this page
10096 kstat update routines shouldn't check for NULL kstat
@@ -14073,11 +14073,11 @@
ill_t *ill;
netstackid_t stackid = (zoneid_t)(uintptr_t)kp->ks_private;
netstack_t *ns;
ip_stack_t *ipst;
- if (kp == NULL || kp->ks_data == NULL)
+ if (kp->ks_data == NULL)
return (EIO);
if (rw == KSTAT_WRITE)
return (EACCES);
@@ -14210,11 +14210,11 @@
icmp_named_kstat_t *icmpkp;
netstackid_t stackid = (zoneid_t)(uintptr_t)kp->ks_private;
netstack_t *ns;
ip_stack_t *ipst;
- if ((kp == NULL) || (kp->ks_data == NULL))
+ if (kp->ks_data == NULL)
return (EIO);
if (rw == KSTAT_WRITE)
return (EACCES);