From nobody Sat Apr 09 00:27:58 2022 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 396821AAC17B; Sat, 9 Apr 2022 00:28:00 +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 4KZwv40VFhz3p8S; Sat, 9 Apr 2022 00:28:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464080; 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=nk4ZFgV+WWq6/zWlS/IP0VtOer6emE58fKXqrEpzN8c=; b=myuHh3wmjy6F3U/Vx4jIakOmGtdhtuV1iquF40nz5KUOJXfut7+jWKxtd1fV2sGgL0+Q8C QLIW2Te8Tik64u+82+SJDaObH7QMpO3+xn8iSetdf5Gswm7CbrBrWBab45qQDnnSze3imK fV96eWnbpCQPnvBFsHg1X8wxNu0aPdjYMxELUNHC3chm4vxJmz3+HCqLaRJ+RgcNlnZETa YTlplt7bOptNfhP1lSyHeB4j2bxZPNj3qFoD5vXbAEeYo/XU8kC6CEi94ubqD6fyvv98Iu /480OYUlVp/BPBXh2p21aSegWPanvVfpWtk04NPTC6qVltzIEZunxOkkQXbm8w== 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 C68E17902; Sat, 9 Apr 2022 00:27:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2390RwKi056718; Sat, 9 Apr 2022 00:27:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2390RwYC056717; Sat, 9 Apr 2022 00:27:58 GMT (envelope-from git) Date: Sat, 9 Apr 2022 00:27:58 GMT Message-Id: <202204090027.2390RwYC056717@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 9c11e6af89c3 - main - sbni: Use memset to clear flags structure in attach. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9c11e6af89c3a9c50e52af5fa2645936dc7eff5d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464080; 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=nk4ZFgV+WWq6/zWlS/IP0VtOer6emE58fKXqrEpzN8c=; b=YggwKSDlSIJ0nLI4g6AD6ozF6hFPH5ENbtWaSOHJOuMsgC6/f2ZgLKR/6FicFupJBjZQgA lymw8OV2Ag3HzveNBPOwS4PMyZBEn2dLjMPpb6NGMIq5PlS8KzgU15P9XlLZGPybgQoHQw TpZlC+sO7gNioyGRmqsNZhAjhr7sGbrTdMoyafVjh093BulCDBMFAmhLR2qJ4OINrEQ95V YFfmHKvP1z/vw0nFwoES7d8Q8wOveumYLiLcMhI+Ekf8U1b66HWHQ3EHaMJ7/o392oQ0Yr hxl4C+13BMPXFzLomeNWtBQeOKgcbyF9EmOZVJx6E6yIJSbMX/l6OF0/xKHuMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649464080; a=rsa-sha256; cv=none; b=Nny2gT7L3xXUUZaNEjseq5DXwja3xlnHiBIig87HHh88VY99YSpxNhLsR8Ow8YMdZWpDTG 8gN/Mxl8m6GiqtT1Ivqm0qUS28Se1CDonK/sTEjO6kXD5e6xvp2REU288J2VZLvIHqf5bF vCPF2OVFjWeqYSy6jdIFQkIwfCNAQ+ElKAGzTjV4tov0h9EpnBTxSHaygZJWvKI8sMImhm c+7L3ND1kfiWKACdY9ZNsLHEmgwYX3xa/YomevN9lcoOC9KWFSTvq844q4LAr6LsB3HuN5 KhwTopbvJHrPEceiAnKFADqiFpp8fO4u8aqyBxpSSe+ypPoFCCEy/NxjLpzXZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9c11e6af89c3a9c50e52af5fa2645936dc7eff5d commit 9c11e6af89c3a9c50e52af5fa2645936dc7eff5d Author: John Baldwin AuthorDate: 2022-04-09 00:25:14 +0000 Commit: John Baldwin CommitDate: 2022-04-09 00:25:14 +0000 sbni: Use memset to clear flags structure in attach. NFC, just less nausea-inducing. --- sys/dev/sbni/if_sbni_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sbni/if_sbni_pci.c b/sys/dev/sbni/if_sbni_pci.c index abd24df842a1..774510ef2231 100644 --- a/sys/dev/sbni/if_sbni_pci.c +++ b/sys/dev/sbni/if_sbni_pci.c @@ -134,7 +134,7 @@ sbni_pci_attach(device_t dev) goto attach_failed; } - *(u_int32_t*)&flags = 0; + memset(&flags, 0, sizeof(flags)); error = sbni_attach(sc, device_get_unit(dev) * 2, flags); if (error) {