From nobody Mon Nov 25 02:06:55 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=1718731477; cv=none; d=zohomail.com; s=zohoarc; b=Nl9NNwUgSlGrwPJGlalI2J+cB70xfnm/N/PUkf6Y/ye2sfAA4B+KmFHft2C++A+KQ1wwpXosl4/A8E9d5jbzmMvclz1vhxKlah+F54UdbDxLbGvqkqWBkGAqLddNRaMWmtlVUNRXtIIchI3/r5T3Az8PokXAVxRbrQxaKGcqlqo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1718731477; 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=LPpeXIN69kNOXVDzIz3L1JsrPbYQMs2OQnzRAF9UkZ9VX5oLTciZO9CqxgEfmOj7NS6kC6DCgaUuuIfQ9pEeKIKTXXH952YBnjE7VsAiQM6GQPV0hSBfmTX2MtF/jtd3KW/yvgTZ7HisAwvc76kI5k1M4pHeaKZgA2tiVwORsIA= 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 1718731477167761.4363567167045; Tue, 18 Jun 2024 10:24:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJcYl-0005gR-Qm; Tue, 18 Jun 2024 13:23:55 -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 <3pcJxZgwKCiwVIJQPMabMNIVOWWOTM.KWUYMUc-LMdMTVWVOVc.WZO@flex--nabihestefan.bounces.google.com>) id 1sJcYj-0005dI-HF for qemu-devel@nongnu.org; Tue, 18 Jun 2024 13:23:53 -0400 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3pcJxZgwKCiwVIJQPMabMNIVOWWOTM.KWUYMUc-LMdMTVWVOVc.WZO@flex--nabihestefan.bounces.google.com>) id 1sJcYi-0003da-0M for qemu-devel@nongnu.org; Tue, 18 Jun 2024 13:23:53 -0400 Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-dfeff072f65so9665016276.3 for ; Tue, 18 Jun 2024 10:23:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718731429; x=1719336229; 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=qgsa4nvZ0ycqLGd/COe0XhtjMpTW2iMHlG7802J6u2Qm2MRorhyzy+rp1xBlQtZwtb fYSOK+fNRno+4bFlA671HAK5XCMd4UlLieKdrSxmItFwZbWcoWIHA87ZH/hJSELGlk0q u4NIARRoe1X358Ti7eifeBGzuOIiQ/Q2q1IqIp6ZlcPX5FvnC6g3G2Zkp0Vuz/lUomiy XfHckdS8tcdA2enn6aPBD6w08wZ1IGJsMuCWmTa8T/5ytfpi8u8blCgJ7nysBbKsISg6 7aYpIf/3TtV9HwABhplKOGMCrutE4N3svss+ll+9n+2mdyQTvlOsKvVRRMdjEF2s4pPF mvHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718731429; x=1719336229; 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=HqiSxAms5quRDTr31G518UZrXbVWywbYSYWVUVKvcBULruexpJm76IhuR9ibvlLh9X a5ofqauq8qrIODfzQ+8LZBwP4MzaowF9bKba3tEuGBjk78FSGiVJf239//Qv6idNlwuf R7mPRe2Ydp4A8vovAQVjJlHOuuWvvfzUa59fEzbKsCVMdw8F6nQ6XSZ2pJGyRW0lyeJ9 NXo7tQ3Z0fHE0JzKuU21WORKhSaDOJYBiglitxT9Ntz0u72jNzkUTX9QheIJmy4FnvKS oElsfbQ78VjG0EB4SgO12FFvRvfr+ms/SfAkScWxnV0ByZNyDw0SHg4A6g/I/QW2J0+n 7WhA== X-Gm-Message-State: AOJu0Ywgca8O0fJAP/K9zdxJNoSJxC0NkpdnMlZcYFWRn3P0DZhR5nac Q3+jUHwBYLgctwCt/CtduG1Sm47NcQ0mKQ0sZeGLDNL5n0CArJgJMGCn3mIf0PvxbfoDPkS8kll glwhqXwh57Qc/v5szPOorQCiosw== X-Google-Smtp-Source: AGHT+IHTQ00Obz4frbbMs2A18rdB/amTirjk+GFrizcUfKhsAJcvLU2VJbYLPTVph1Wfaj6gxKU4HY0drwVpMXV0lbk= X-Received: from nabihestefan.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:2737]) (user=nabihestefan job=sendgmr) by 2002:a05:6902:114b:b0:dfb:15c1:73f9 with SMTP id 3f1490d57ef6-e02be1ddca5mr73803276.8.1718731429072; Tue, 18 Jun 2024 10:23:49 -0700 (PDT) Date: Tue, 18 Jun 2024 17:23:43 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.45.2.627.g7a2c4fd464-goog Message-ID: <20240618172344.3448375-1-nabihestefan@google.com> Subject: [PATCH] hw/net: Fix Coverity Issue for nocm-gmac From: Nabih Estefan To: peter.maydell@linaro.org Cc: qemu-devel@nongnu.org, kfting@nuvoton.org, 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::b49; envelope-from=3pcJxZgwKCiwVIJQPMabMNIVOWWOTM.KWUYMUc-LMdMTVWVOVc.WZO@flex--nabihestefan.bounces.google.com; helo=mail-yb1-xb49.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: 1718731477605100001 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