From nobody Wed Apr 06 23:46:08 2022 X-Original-To: dev-commits-src-main@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 ABD071A833B4; Wed, 6 Apr 2022 23:46:09 +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 4KYh3j1chQz4R1f; Wed, 6 Apr 2022 23:46:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288769; 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=a9loauGLDWT9weiIGrIjKN2fi6fxjnFDVrxAF9NQrsQ=; b=j3y4iwQbn7I4vCDE/Cn9ZsR/6/rjVVHJvPBvFH0dnhqvGZBm8ORATQ1ZvA/dbEH9wZIosl gY+lgUd3xzawfzITK/gb4VIjXwP4bNesIYOm1IDunZyOKrbMO+Ehgk3qLg7DkbYRUYONdN KfqEs2HSNoKpdLYMPfOwaPqOA4Kh7cyjkMtluQtWrYSKCm//mxAqk6k3CAGl2Xbxk6B6Lc 7TpexDCDLI7sU8ktTiaIhF408/jK2qFRAXb3APWfUO7M56eHbmU2uRITmOnRUjPLGySy6t tf3JEimk0rSYit8SVJJSojhUIF7gPXkMFzbJI4jEE8XzJx9vA7GyGLiGL/6mYg== 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 A3E0F24AD4; Wed, 6 Apr 2022 23:46:08 +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 236Nk8it008841; Wed, 6 Apr 2022 23:46:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236Nk86X008840; Wed, 6 Apr 2022 23:46:08 GMT (envelope-from git) Date: Wed, 6 Apr 2022 23:46:08 GMT Message-Id: <202204062346.236Nk86X008840@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: 6301649e0e43 - main - mlx5: Remove write-only variables. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 6301649e0e4304eff9beeaf688e97d3b3f6fc368 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288769; 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=a9loauGLDWT9weiIGrIjKN2fi6fxjnFDVrxAF9NQrsQ=; b=kiNJn80YOikhK7u65Xg4f9YMXidgqmFSMuBPlStIeU94qezYP/7ZEAErQZrfXBy+d2fx3L UK1yN5FaiX26m9qceqKvAIJmrG3c57o4JYBh1sjGWdXQMFHqhePRa9DyJsTja9fDmhIHXl e1IOVmHrjGlEg5a2lbJuEmVSowyNHzT58Y6yjuQkyreaZxj9WbXi2ebhFt/9iZ4tsufh0u 6m7FZ6s7cls8VmtSMqOuOa7tYKo3TMIlLmGWeTOI8O+Zom6ghPCkPTccrtIk8KKbJRVtEQ 7CzaH6k+BEfuNQwooQFOcqC4udLMDeFLlGe5SQfV707QK8WHPUv1P8CqWpJVsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649288769; a=rsa-sha256; cv=none; b=dZIQeCRiakJNFy6BIhsEhB9ZyvlzW7Yrh/p0LDu15c/tgwrckXw0+vS/A0L/z/wWqPlT6O evbvGjWXj9an6aw6YghDUBpfyKOAeE/vaqgoXJTxXlOZsodr7WVZi+4n38ubHJ7vKp43lZ AwyF6PHTv2VnGdI6AAXmRp7sQ/KhfbKiOsJC10uxb9KHxY7LzQt6lW54IlD4fZUT0AkdkA JKJ9le9h5dIjQUV+bwZqo6ECP9CFxUm6xn+Q+zvtqEQfCrlNQQT4Th3lYchRmdsvQX5O/m 2jOcOw5SLu5LfCmVwATf3UwzK7pCGIcLWPflcRIXVEIvxo1quHNXT8hW6JTNgw== 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=6301649e0e4304eff9beeaf688e97d3b3f6fc368 commit 6301649e0e4304eff9beeaf688e97d3b3f6fc368 Author: John Baldwin AuthorDate: 2022-04-06 23:45:28 +0000 Commit: John Baldwin CommitDate: 2022-04-06 23:45:28 +0000 mlx5: Remove write-only variables. --- sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c | 2 -- sys/dev/mlx5/mlx5_core/mlx5_main.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c index 5305991689ca..ecfac9adb98a 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c @@ -1063,14 +1063,12 @@ static struct mlx5_flow_group *fs_create_fg(struct mlx5_core_dev *dev, { struct mlx5_flow_group *fg; int err; - unsigned int end_index; char name[20]; fg = fs_alloc_fg(fg_in); if (IS_ERR(fg)) return fg; - end_index = fg->start_index + fg->max_ftes - 1; err = mlx5_cmd_fs_create_fg(dev, fg_in, ft->vport, ft->type, ft->id, &fg->id); diff --git a/sys/dev/mlx5/mlx5_core/mlx5_main.c b/sys/dev/mlx5/mlx5_core/mlx5_main.c index 6fcd7cf281f2..6ddeaf64ed89 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_main.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_main.c @@ -891,11 +891,9 @@ mlx5_firmware_update(struct mlx5_core_dev *dev) static int mlx5_pci_init(struct mlx5_core_dev *dev, struct mlx5_priv *priv) { struct pci_dev *pdev = dev->pdev; - device_t bsddev; int err; pdev = dev->pdev; - bsddev = pdev->dev.bsddev; pci_set_drvdata(dev->pdev, dev); strncpy(priv->name, dev_name(&pdev->dev), MLX5_MAX_NAME_LEN); priv->name[MLX5_MAX_NAME_LEN - 1] = 0;