From 9580c0f7ce319d3e4e213faa40b59bd91c7b66ba Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Mon, 14 Mar 2016 18:07:59 +0000 Subject: [PATCH] Remove useless cast in SYSCTL_ADD_COUNTER_U64 macro. --- sys/sys/sysctl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index ec40d2955a32..7c1e79cfb1fb 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -640,12 +640,11 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry); #define SYSCTL_ADD_COUNTER_U64(ctx, parent, nbr, name, access, ptr, descr) \ ({ \ - counter_u64_t *__ptr = (ptr); \ CTASSERT(((access) & CTLTYPE) == 0 || \ ((access) & SYSCTL_CT_ASSERT_MASK) == CTLTYPE_U64); \ sysctl_add_oid(ctx, parent, nbr, name, \ CTLTYPE_U64 | CTLFLAG_MPSAFE | (access), \ - __ptr, 0, sysctl_handle_counter_u64, "QU", __DESCR(descr)); \ + ptr, 0, sysctl_handle_counter_u64, "QU", __DESCR(descr)); \ }) /* Oid for an opaque object. Specified by a pointer and a length. */