From nobody Mon Nov 25 01:56:03 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=google.com ARC-Seal: i=1; a=rsa-sha256; t=1718731563; cv=none; d=zohomail.com; s=zohoarc; b=GxInttt5QCm+5b+XtRpbn0v08YmW9rsjBaTGH4/X/kOYsYHQmG+5f9W1lqGVcadjIY04cWMRlT9saUj/HChfN6LF0ThyRUc3JnLpPHEhjzfQs/TK7YdUG17kLTnZYskCvOEBRttiIPxq5+KBI/efOYc5EeQUfV9rR5MI53jpd5M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1718731563; h=Content-Type:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=mIz+uBMleWspMGOXrthG2m3FtkYnjCAe7akkH5AGnWM=; b=ElvcWsXJjhxiRcleoRyrRSj8yA9pRvYNGz+zUz0hvG/mSETcyShEQPNZLqhkYUg8I+xAzZeJJbE8e6hwRvjF2baDBQixU7630HBtDXa7ZF4iNCjiGtIBu+nlMKFZHSGr1h1UU3GaazPMRsgfzgtqTzr4KoSmkGYZnAtloeAYX6c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1718731563946361.2433450016222; Tue, 18 Jun 2024 10:26:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJcae-0008S3-D5; Tue, 18 Jun 2024 13:25:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3CsNxZgwKCpE8vw32zDEz0v819916z.x97Bz7F-yzGz689818F.9C1@flex--nabihestefan.bounces.google.com>) id 1sJcaQ-0008Jd-T3 for qemu-devel@nongnu.org; Tue, 18 Jun 2024 13:25:41 -0400 Received: from mail-pf1-x449.google.com ([2607:f8b0:4864:20::449]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3CsNxZgwKCpE8vw32zDEz0v819916z.x97Bz7F-yzGz689818F.9C1@flex--nabihestefan.bounces.google.com>) id 1sJcaL-00045h-4C for qemu-devel@nongnu.org; Tue, 18 Jun 2024 13:25:37 -0400 Received: by mail-pf1-x449.google.com with SMTP id d2e1a72fcca58-7059fdafc78so4797675b3a.2 for ; Tue, 18 Jun 2024 10:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718731530; x=1719336330; darn=nongnu.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=mIz+uBMleWspMGOXrthG2m3FtkYnjCAe7akkH5AGnWM=; b=ujUJ/7jfuZI/QvaoX8GuGiMH2BqIFdGkwP/ncqfZB8Hpypjkj0QcwYxLsTYJQp/kCI IAn9gf1RD7U4Cu1pJzklLqUenzLSnJQolGJOQf0LKvH5tcrwTuVItRTv49RFj9tIDBrw JY1313x9bVHd4FOqxKc8MrMAbFN8ng7vJu51wDagkyZ8V70fR9pujuTefL5PFQ+48PsI zre6wVDrEXgsLmDx5y/DBiRibqAsVb0XdA0t8ym95/jS+sq0de5ndKQpJCrZL2tzDxpx 10hY6NociedyLqANbUdSlUzrpys63mjAG34wJNISDnmty/ctY5Wd1hnpS6pAU82WK5bD KlzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718731530; x=1719336330; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=mIz+uBMleWspMGOXrthG2m3FtkYnjCAe7akkH5AGnWM=; b=JI+MkI/pubo975jEfZgk4kT5q0fVGGpFVvI8CzJVe+50S/YGaRdpC4j8+go5lWPWKE 6Z0j+T/HNikKHDVRll/qJrLJZploP4OR32QDWl6FTIAWX0Tf6jauCUKR1NaM6KL+wB5T q1rVNs9ctWnJyxZWm201VVthtdbbcEd6MEuo+yL8/jp0Z88P66eplHxkFgJJFVDBgVan nVxvSCIG8cqDiMrWP/9wcllsBTfun3sBD3skG5Rt6eBWGTV8MJBpnqh/PmtbEOoDewoV bHQ/1bVvxkbZ+SzK3uuMiWEDyoLYYUMyiDV+eoyDg7+Xf0hMDeqY6jKtAb53lNIb5b/Z lGPA== X-Gm-Message-State: AOJu0YwCtAj3usM+2TMZnJtGIsMlT0PQgmzrVsXCUnBwBDmp5ZsUUyDQ xzt017O19IQ3QbptWZGeZJrdm8VaU7+GCve96s05mo6slkISMCFWIHc9leJsr7P9UWwPB196Thk pjqMs+Ah7NOZBcSJJOLtZAwiiVg== X-Google-Smtp-Source: AGHT+IF+IYqipwq+INBn+wOG+lXUlo0C+Cm0B5L6VFhjVrY0oSIpckGFc3xgh8obLRgb2s6tAby0QoYAtQzOUT2Vnf4= X-Received: from nabihestefan.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:2737]) (user=nabihestefan job=sendgmr) by 2002:a05:6a00:1d84:b0:705:dbf5:1905 with SMTP id d2e1a72fcca58-70629ce5559mr814b3a.3.1718731530081; Tue, 18 Jun 2024 10:25:30 -0700 (PDT) Date: Tue, 18 Jun 2024 17:25:27 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.45.2.627.g7a2c4fd464-goog Message-ID: <20240618172527.3450098-1-nabihestefan@google.com> Subject: [PATCH] hw/net: Fix Coverity Issue for npcm-gmac From: Nabih Estefan To: peter.maydell@linaro.org Cc: qemu-devel@nongnu.org, kfting@nuvoton.com, wuhaotsh@google.com, jasowang@redhat.org, nabihestefan@google.com Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::449; envelope-from=3CsNxZgwKCpE8vw32zDEz0v819916z.x97Bz7F-yzGz689818F.9C1@flex--nabihestefan.bounces.google.com; helo=mail-pf1-x449.google.com X-Spam_score_int: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @google.com) X-ZM-MESSAGEID: 1718731565933100003 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There is an extra `buf=3D` set that is not used by npcm-gmac. Remove it for coverity to be happy. Signed-off-by: Nabih Estefan --- hw/net/npcm_gmac.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/net/npcm_gmac.c b/hw/net/npcm_gmac.c index 1b71e2526e..b397fd5064 100644 --- a/hw/net/npcm_gmac.c +++ b/hw/net/npcm_gmac.c @@ -614,7 +614,6 @@ static void gmac_try_send_next_packet(NPCMGMACState *gm= ac) net_checksum_calculate(tx_send_buffer, length, csum); qemu_send_packet(qemu_get_queue(gmac->nic), tx_send_buffer, le= ngth); trace_npcm_gmac_packet_sent(DEVICE(gmac)->canonical_path, leng= th); - buf =3D tx_send_buffer; length =3D 0; } =20 --=20 2.45.2.627.g7a2c4fd464-goog