From nobody Sun Dec 31 16:24:21 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T34FK6lj9z563gw; Sun, 31 Dec 2023 16:24:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T34FK6D0Xz4Ywv; Sun, 31 Dec 2023 16:24:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704039861; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1sIWid9lIhWqRBVfuBO+3UvIufAnNQXdaBkxkvHRKFQ=; b=WjbascLXnuctNu87GAM/Zofgz6Nd+0RhD+wq/lityMOr69dXgmnWwsJRzmN26yrlbGp9El s1sATb287uyLDlLbYjfOJZs0pDqLhpqJ5IbiPXj//UWlQhUKNjnpXDhKnmRDlt+Km15iqz BRqeSrsUmKaS1kREBLLANEbaB+4rN8VM/rldUcI+tlQAZOkt3JLi/OZhiJDJw4Hc1AFdvl RfoUeRkk1ZU3rWU3u34V1QYvScMf98iCmmQR4nkBxcUwzbQgynlg6JHbcIHV5/HXPNk0pX SAJS7nm5OEuVC4HmZSGpj58g6PKUCC9gKINjsVBxVCzx71StxvcuAS8g9G0CPg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704039861; a=rsa-sha256; cv=none; b=sNG6aKoMH2m6zKLO4lIxiyW3vo/TeeI4Vlfh1hXMTMZIVu1zj2tYBN7LBqdxrd0GYmG6Id v9eF5LY1xzg0bjbxjvbIwKis/NOIZok0vbdP+vzC4w9lw5bDE5DP8JGlaiBtY1suRt6SBn Yu+X24sdyYC+RXvY/IBjbB2sObwTheXAuySzUh87od35sgV2NXf9wzLnZ1sfglOYDGz53J UV7tNCOB4KJtFewTwkOIITxHkZfgpXFB0FbUVHLM5C1rtVdlEU2GsRF+XeTXN2+Xn9uFM8 PJF4nBZ/1Cn7cIn9522Pqr952rZUzCRU3mpFGJdjGlKeJnRaWQ6CImhhRjGwDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704039861; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1sIWid9lIhWqRBVfuBO+3UvIufAnNQXdaBkxkvHRKFQ=; b=TuL4Rf2nZdY2trT83zwO2c2yOWTVwyj+4BMcfzbeyq42YVsTavpk0McHrGiZUhgZiJUTqC MeykZrL+guJkrermmdfck0vcGgZYGQn9zhf2ZoFcKRQn8LjghT9IMIBxzbekS3881bpZXQ BxnmKE0xq696PRS91gjvrzOTMgxPjfVYv+qBEFVyVol3wpupS5ZbJ6Q3LH4ZrYT7bf14Wo GSV0JayKiFc0NGZnJ7ucO6AFpW0nXSX+p8o/Wx+3ZHmojhsDFK7lYArQHSq4rEiPWCx0fX IodZk0NXlKbwTYeBVLVhQEUPHiURY5P+4h6z48HNJbOydBm7ocKthZTfpKQSzg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T34FK5GYszhH2; Sun, 31 Dec 2023 16:24:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BVGOLN6042586; Sun, 31 Dec 2023 16:24:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BVGOLdt042583; Sun, 31 Dec 2023 16:24:21 GMT (envelope-from git) Date: Sun, 31 Dec 2023 16:24:21 GMT Message-Id: <202312311624.3BVGOLdt042583@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: f12a9a4c041a - main - frag6: Drop unneeded casts from malloc calls List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f12a9a4c041a4dbce7dccc85aa5fad155e137d7e Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f12a9a4c041a4dbce7dccc85aa5fad155e137d7e commit f12a9a4c041a4dbce7dccc85aa5fad155e137d7e Author: Mark Johnston AuthorDate: 2023-12-31 16:15:22 +0000 Commit: Mark Johnston CommitDate: 2023-12-31 16:15:22 +0000 frag6: Drop unneeded casts from malloc calls No functional change intended. MFC after: 1 week --- sys/netinet6/frag6.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c index 82d4239777da..a3a6e7eca14a 100644 --- a/sys/netinet6/frag6.c +++ b/sys/netinet6/frag6.c @@ -588,8 +588,7 @@ frag6_input(struct mbuf **mp, int *offp, int proto) goto dropfrag; /* Allocate IPv6 fragement packet queue entry. */ - q6 = (struct ip6q *)malloc(sizeof(struct ip6q), M_FRAG6, - M_NOWAIT | M_ZERO); + q6 = malloc(sizeof(struct ip6q), M_FRAG6, M_NOWAIT | M_ZERO); if (q6 == NULL) goto dropfrag; #ifdef MAC @@ -715,8 +714,7 @@ frag6_input(struct mbuf **mp, int *offp, int proto) } /* Allocate an IPv6 fragement queue entry for this fragmented part. */ - ip6af = (struct ip6asfrag *)malloc(sizeof(struct ip6asfrag), M_FRAG6, - M_NOWAIT | M_ZERO); + ip6af = malloc(sizeof(struct ip6asfrag), M_FRAG6, M_NOWAIT | M_ZERO); if (ip6af == NULL) goto dropfrag; ip6af->ip6af_mff = (ip6f->ip6f_offlg & IP6F_MORE_FRAG) ? true : false;