From nobody Sun Jan 07 16:58:07 2024 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 4T7Ng33LLpz55QcT; Sun, 7 Jan 2024 16:58:07 +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 4T7Ng32QBYz4DLM; Sun, 7 Jan 2024 16:58:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704646687; 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=rePK2c1/IihTtl1gijwhOAe8JlkEmzJ+HKaCgzdwZAQ=; b=GNkkHi9gIPPdHjHlSaz6fBMLEZ9oFK9P/9QgYK3dmH92xaN6dlyMmUpjCloH7mhbFLHQ0r UK9cztLPhm9S8qTF368vVuHVMksz2iglpS4rVuF+lJ0IFLf8oErhG7tnDdukXxbOWY5w9f sBnpvCmm9aeXqAZ2SmFLEmwAfLcTvGf1dMD+wZyVhbRLgbw2K6oJr2YXyOVRbPgBq+dr/L gga0hERzXuSH/aIVJDzdAG3Llsj3kQD5Hje7D8STUzZeFXUHYUWMLTejHbYyLSRcIqXaYl kxPZYZVs1rYLhpAlHnHGpXKXrpWhIsZLghlW3dDgEXty3nT1Jdl/mE4GpVSS8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704646687; 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=rePK2c1/IihTtl1gijwhOAe8JlkEmzJ+HKaCgzdwZAQ=; b=wdRPaPlioXKDpnssSAAXVPHFWel0CWhLkWAaPQsAHHAiExroYcmBkChwDtCe8lYsK/yMnl Pi+ciH49Z6+HVDLSu2LPrleV2jBuCZ9/zyBrGrSfz0nmUetSbjqn8MrHR1EGw7Nqi76+HC fhR3uY1qMlcWDUw7ZwSjQePPdnrer2rFk3a0bsY46y6t/7RvKqKV3v1XH6GUx4/fMTMWqA 4o/AMVTYJBZral6gspyMoRCYU4iZ+Mu4SOvPd7nxO0I6YWlJ7ckoBge+7z8d7k5FgFfo2X dRCg8zoGEaQbmPdDlau34AgoHrE/no67Hk+4k/rNeGLuWPo5NPqUZ+Gxq33Lbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704646687; a=rsa-sha256; cv=none; b=HvfMzOZhxVAeln972EfxPa8/JsuEi3pgvU/tU5W9gFOwyLrxdiGYMSoMadKMVIWOYGpnEJ mwvnaiCExBZt5nijC1UshLeJKYyPUZ66YIqOOalVo/NCH/3+ScZ7LFQ/bhpcLlYJgCsB7L MsQ53o+mBAQljmcGHRFHi7TQbZ/8QEbI3a73qkiEqOkO9mZKUVWIB87zWVA6RA/mn0aOyT wNTGVOorvKYM5v9pziTYaUYRcZrvUmYEptkzSbJlpSlgJeS6QjXSZ91TfsUQpcyoC91yZh I7LQYxRuS+J9xZ5AZZXxUFk2zHN8Qw2CFZ9nLLgnX5DJxEK3ksHbJ08kI4bc+w== 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 4T7Ng31KhgzXg0; Sun, 7 Jan 2024 16:58:07 +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 407Gw7Xv028961; Sun, 7 Jan 2024 16:58:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 407Gw7E8028958; Sun, 7 Jan 2024 16:58:07 GMT (envelope-from git) Date: Sun, 7 Jan 2024 16:58:07 GMT Message-Id: <202401071658.407Gw7E8028958@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 213077d6e404 - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 213077d6e40446090f8055d5d92f18808adc0819 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=213077d6e40446090f8055d5d92f18808adc0819 commit 213077d6e40446090f8055d5d92f18808adc0819 Author: Mark Johnston AuthorDate: 2023-12-31 16:15:22 +0000 Commit: Mark Johnston CommitDate: 2024-01-07 16:55:32 +0000 frag6: Drop unneeded casts from malloc calls No functional change intended. MFC after: 1 week (cherry picked from commit f12a9a4c041a4dbce7dccc85aa5fad155e137d7e) --- 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;