From patchwork Tue Feb 13 03:17:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 13554428 X-Patchwork-Delegate: kuba@kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF6B812E48 for ; Tue, 13 Feb 2024 03:17:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707794273; cv=none; b=EtHgO+RKGDuBds/UvQIN4R+/EjkXKVpoPTmz6HXCCxuVKyEY/pqfuBpIw0BjKZpLawmyUfcYLXGmV5eH5KJbM/qYuyG1EX5ewdwWcQHJGBhoZqPGHSY5vbPRxLFtPfifHxUv7s33hQfPn7D1tmV44RxoGV5ojV80+oTtCAjsYTc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707794273; c=relaxed/simple; bh=7QnbyZv639A7+qtsKxlPKa2Tv7exBq//jqAxjNG5mMc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VBCZJwRehLH/3rnii7ESxcLpL1MHwZrsMIZzG4OEN6oPOFLCJHlnhxSqMcFoHRlKKJG/r6fnLUNVbCLfktWSURFP5hBqj+FSBn667x15Grb7Ibv93ioKB5Wzct2AZ6ywP9Bm7AP/C6vy+dor9BOJqP0ghU1aI6Ajap5sMaWRc1I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=dw3CQuHz; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dw3CQuHz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707794270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=sWJRAqDENff6rxpAFGcRw8+X7K0Hop6D3F2FzfpiRoo=; b=dw3CQuHziPuS3cYgdQv6DIskumgCIEI2Fc0aZ8NVQki6EdPvpdJRi5ayfpbWCmnNI4hr85 mdCuaBpYQSO6TC/B6ZcsrJQI1USsfWfUVhhq1lUpqM0eWCsvQir/pmqQfHfWvjR1II++AM yf2y786astyRf7aG9pXuoLOL/TPkoZM= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-26-r6pCNxRROpqPsvC2sqzx-w-1; Mon, 12 Feb 2024 22:17:47 -0500 X-MC-Unique: r6pCNxRROpqPsvC2sqzx-w-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1A057383CCE3; Tue, 13 Feb 2024 03:17:47 +0000 (UTC) Received: from fedora-x1.redhat.com (unknown [10.22.33.232]) by smtp.corp.redhat.com (Postfix) with ESMTP id A15051C060AF; Tue, 13 Feb 2024 03:17:46 +0000 (UTC) From: Kamal Heib To: netdev@vger.kernel.org, "David S . Miller" , Jakub Kicinski Cc: Shay Agroskin , David Arinzon , Kamal Heib Subject: [PATCH net-next] net: ena: Remove redundant assignment Date: Mon, 12 Feb 2024 22:17:18 -0500 Message-ID: <20240213031718.2270350-1-kheib@redhat.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Patchwork-Delegate: kuba@kernel.org There is no point in initializing an ndo to NULL, therefor the assignment is redundant and can be removed. Signed-off-by: Kamal Heib Reviewed-by: Brett Creeley Acked-by: Arthur Kiyanovski --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c index 1c0a7828d397..88d7e785e10f 100644 --- a/drivers/net/ethernet/amazon/ena/ena_netdev.c +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c @@ -2867,7 +2867,6 @@ static const struct net_device_ops ena_netdev_ops = { .ndo_get_stats64 = ena_get_stats64, .ndo_tx_timeout = ena_tx_timeout, .ndo_change_mtu = ena_change_mtu, - .ndo_set_mac_address = NULL, .ndo_validate_addr = eth_validate_addr, .ndo_bpf = ena_xdp, .ndo_xdp_xmit = ena_xdp_xmit,