From nobody Thu Nov 13 16:32:41 2025 Delivered-To: importer@patchew.org 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; Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581782910836982.9204051188649; Sat, 15 Feb 2020 08:08:30 -0800 (PST) Received: from localhost ([::1]:52286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2zzZ-0005v0-Fy for importer@patchew.org; Sat, 15 Feb 2020 11:08:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46919) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2zyX-0004c6-QA for qemu-devel@nongnu.org; Sat, 15 Feb 2020 11:07:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2zyW-0001NU-K2 for qemu-devel@nongnu.org; Sat, 15 Feb 2020 11:07:25 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:47096 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j2zyW-0001My-G0 for qemu-devel@nongnu.org; Sat, 15 Feb 2020 11:07:24 -0500 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-284-DdwnNLO5NZCFGjuntjLWFA-1; Sat, 15 Feb 2020 11:07:22 -0500 Received: by mail-wr1-f72.google.com with SMTP id z15so5952137wrw.0 for ; Sat, 15 Feb 2020 08:07:21 -0800 (PST) Received: from localhost.localdomain (78.red-88-21-202.staticip.rima-tde.net. [88.21.202.78]) by smtp.gmail.com with ESMTPSA id b18sm12103829wru.50.2020.02.15.08.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Feb 2020 08:07:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581782843; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0KddiZkYmDRfPOIEgujnl3Lx1NAvx6ywpvK43Vz9IJc=; b=QenY6Z277i6iMEffQ5ikB+MTKir7v8Dxl7MeucNNv4W1qehRsdJmQuKaqDFJXWy/wdbNwn 8T+GUXAPFJIk9BBjmNg+hi/c5NVMobci/Dwp+hnxUaxYInsLRTLss7fsZmwxDRwOZbLV87 00sgaKdEeapggTEDTiiLIOv4Yb0FFsk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JAdJtb0hXIPeTgI5pZzta7S4+kyeKW1TY66bu8o8P5k=; b=EodIuD30IJ+RGGl0vGPq09i7G3yAUdr4Ns/Kjzg87WXyM9ndVcyTrX6/2hsy3DBdFL pZRI+Ri04Ts0YQwd+ugu69O/p5WZoqI64LaFh3ZzuKYsCGGQPhmJ+EqoEtS4ZSIIXbzb K0XZTLBsyt0G3jAbTcNuKheyagkeJS8CoFzzIRkE9/6FxqRZ0ET5VAhWc/P6lYz6rOmw yu5IT9Jp15ZLvDeEx2ti0Pi+wNebv+wX4l6AqhYoJgeJOdJiYspebCgYAjmlrLdWiDDD Qi48hrcZ4lNRBl79/8qrVQniGaTdNPvYoW4BjMHzkRTRcMTlqzSiFebBpC+BNG2+kDno UN2w== X-Gm-Message-State: APjAAAUudR7DQQ9wdGC8xHK6IGiOa1ozY2Z/kdvfkc4UF10aFmwL0frE N2tbwxxb9VqE/Qw3LoaZyqI/EWhufv26CQd3+1zGJuI3iEkiwK9mf3jBWnURz5uFWXmCkrxJGWH EOCXUM2EVkiuZuLU= X-Received: by 2002:a7b:c5da:: with SMTP id n26mr11078710wmk.138.1581782840543; Sat, 15 Feb 2020 08:07:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwLuSL4ZupK1jkSGrKX19clyLz+q/nRGNfjCy1ZH29WzRBKy3vWKFzgtHeJFxk93hvLBibHSw== X-Received: by 2002:a7b:c5da:: with SMTP id n26mr11078699wmk.138.1581782840332; Sat, 15 Feb 2020 08:07:20 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/3] tools/virtiofsd/passthrough_ll: Remove unneeded variable assignment Date: Sat, 15 Feb 2020 17:07:14 +0100 Message-Id: <20200215160716.1262-2-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200215160716.1262-1-philmd@redhat.com> References: <20200215160716.1262-1-philmd@redhat.com> MIME-Version: 1.0 X-MC-Unique: DdwnNLO5NZCFGjuntjLWFA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Dr. David Alan Gilbert" , Stefan Hajnoczi Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Fix warning reported by Clang static code analyzer: CC tools/virtiofsd/passthrough_ll.o tools/virtiofsd/passthrough_ll.c:1083:5: warning: Value stored to 'saverr= ' is never read saverr =3D ENOMEM; ^ ~~~~~~ Fixes: 7c6b66027 Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: J=C3=A1n Tomko --- tools/virtiofsd/passthrough_ll.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough= _ll.c index c635fc8820..e9e71d5fc2 100644 --- a/tools/virtiofsd/passthrough_ll.c +++ b/tools/virtiofsd/passthrough_ll.c @@ -1080,8 +1080,6 @@ static void lo_mknod_symlink(fuse_req_t req, fuse_ino= _t parent, return; } =20 - saverr =3D ENOMEM; - saverr =3D lo_change_cred(req, &old); if (saverr) { goto out; --=20 2.21.1 From nobody Thu Nov 13 16:32:41 2025 Delivered-To: importer@patchew.org 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; Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581782975854639.1821335031141; Sat, 15 Feb 2020 08:09:35 -0800 (PST) Received: from localhost ([::1]:52326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j300c-0008F5-MI for importer@patchew.org; Sat, 15 Feb 2020 11:09:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46953) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2zye-0004da-7h for qemu-devel@nongnu.org; Sat, 15 Feb 2020 11:07:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2zyd-0001Pt-9A for qemu-devel@nongnu.org; Sat, 15 Feb 2020 11:07:32 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:48410 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j2zyd-0001P9-5D for qemu-devel@nongnu.org; Sat, 15 Feb 2020 11:07:31 -0500 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-320-Pt7P-SEuPWqMj_9z8M9Pmw-1; Sat, 15 Feb 2020 11:07:23 -0500 Received: by mail-wr1-f70.google.com with SMTP id 90so5909295wrq.6 for ; Sat, 15 Feb 2020 08:07:23 -0800 (PST) Received: from localhost.localdomain (78.red-88-21-202.staticip.rima-tde.net. [88.21.202.78]) by smtp.gmail.com with ESMTPSA id b18sm12103829wru.50.2020.02.15.08.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Feb 2020 08:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581782848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bKQaDu+Pxo8HkKDct+RYKqIHdUOrJxHSe3xvMAMjwlU=; b=dc8DkIUNJRj5WK2kI/aJU67Vw0v524u+KNDAqb29L0zBsx+Of2V7mcCbMy9SmLTsyCTe2V eBuXohNdXVEYhyD3oI8XqRv53hWB8xUPw/AiH+t7qOxD+rurBUevlX6tow+gl7gN8uRYfF GudBiMAPIQgTjHVYqCq2ugYyzXBDzh4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dR3FO8AbsV49vnTIXTFL7LHBNhiT1rIcfLpNSebEqDw=; b=A/Cae3t2yQwWnKAJlVWEV2NEo56JA72bsfxIJWhxmz0gArYx66uvnG3I6N94L6NTEs uNjGQIFy+DnUKXfVgF8DC7ZIhVxAC+1Gd9D4iH4acMOfaZaJ8sMqZKRI2l9hb7ae57TT G8qOg4DzOzxzlMPCyqb2MyjrjiZLbnavsAj6PexH6UqTQ3xsiHfHi4lTv+vHk335PE0X +iUEgxCxGuIEvGRFV46yeHM9+5jQgdAJr+AOiH5lOKjw5nYjPKWfhbPxWiEBfCj+NQ19 8vDb+BiF02zRfbmxAHNOVDRo0fkJmaGjPFTT49fQAXCMjnI5v8Ra4svOTawEtv+hYCnb NzXA== X-Gm-Message-State: APjAAAUBslItDul5CoRda2rCNi+qJzCxH4hHUlPucWnjRUpdGO4jk83i afc7COR4Ge+ZaPfHNeuFvmxBD+vOnmjKfpOiKBK26suTq6i4bLGI1CWU1UNXSt/zUuB8G4crARX C03fyt/ylfz1eZnw= X-Received: by 2002:a1c:4383:: with SMTP id q125mr11426740wma.88.1581782841817; Sat, 15 Feb 2020 08:07:21 -0800 (PST) X-Google-Smtp-Source: APXvYqyPLf67se2pRBLgHpvgNeNOvdjimB4WAYcx6lLZb1YHzgnjxE/DUp92hEFZNR/y05JPDo8m6w== X-Received: by 2002:a1c:4383:: with SMTP id q125mr11426729wma.88.1581782841664; Sat, 15 Feb 2020 08:07:21 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 2/3] tools/virtiofsd/passthrough_ll: Remove unneeded variable assignment Date: Sat, 15 Feb 2020 17:07:15 +0100 Message-Id: <20200215160716.1262-3-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200215160716.1262-1-philmd@redhat.com> References: <20200215160716.1262-1-philmd@redhat.com> MIME-Version: 1.0 X-MC-Unique: Pt7P-SEuPWqMj_9z8M9Pmw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Dr. David Alan Gilbert" , Stefan Hajnoczi Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Fix warning reported by Clang static code analyzer: CC tools/virtiofsd/passthrough_ll.o tools/virtiofsd/passthrough_ll.c:925:9: warning: Value stored to 'newfd' = is never read newfd =3D -1; ^ ~~ tools/virtiofsd/passthrough_ll.c:942:9: warning: Value stored to 'newfd' = is never read newfd =3D -1; ^ ~~ Fixes: 7c6b66027 Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tools/virtiofsd/passthrough_ll.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough= _ll.c index e9e71d5fc2..b38e0e4d84 100644 --- a/tools/virtiofsd/passthrough_ll.c +++ b/tools/virtiofsd/passthrough_ll.c @@ -922,7 +922,6 @@ static int lo_do_lookup(fuse_req_t req, fuse_ino_t pare= nt, const char *name, inode =3D lo_find(lo, &e->attr); if (inode) { close(newfd); - newfd =3D -1; } else { inode =3D calloc(1, sizeof(struct lo_inode)); if (!inode) { @@ -938,8 +937,7 @@ static int lo_do_lookup(fuse_req_t req, fuse_ino_t pare= nt, const char *name, g_atomic_int_set(&inode->refcount, 2); =20 inode->nlookup =3D 1; - inode->fd =3D newfd; - newfd =3D -1; + inode->fd =3D -1; inode->key.ino =3D e->attr.st_ino; inode->key.dev =3D e->attr.st_dev; pthread_mutex_init(&inode->plock_mutex, NULL); --=20 2.21.1 From nobody Thu Nov 13 16:32:41 2025 Delivered-To: importer@patchew.org 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; Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581782912566162.97479686379688; Sat, 15 Feb 2020 08:08:32 -0800 (PST) Received: from localhost ([::1]:52288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2zzb-0005yR-BB for importer@patchew.org; Sat, 15 Feb 2020 11:08:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46942) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2zyd-0004cR-66 for qemu-devel@nongnu.org; Sat, 15 Feb 2020 11:07:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2zyZ-0001Oh-21 for qemu-devel@nongnu.org; Sat, 15 Feb 2020 11:07:31 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:52311 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j2zyY-0001OR-Tn for qemu-devel@nongnu.org; Sat, 15 Feb 2020 11:07:26 -0500 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-103-V9BeUBltNOWmc0a31Oe1Eg-1; Sat, 15 Feb 2020 11:07:24 -0500 Received: by mail-wr1-f72.google.com with SMTP id m15so5858248wrs.22 for ; Sat, 15 Feb 2020 08:07:24 -0800 (PST) Received: from localhost.localdomain (78.red-88-21-202.staticip.rima-tde.net. [88.21.202.78]) by smtp.gmail.com with ESMTPSA id b18sm12103829wru.50.2020.02.15.08.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Feb 2020 08:07:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581782846; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9lANoO2hEBAiK6Abua/ChKi8GNRcgOtuBPCjmr2dzdE=; b=a7L+pyW29o1ifd79Sc5fwH+/GVzR6y8zYMRpfQB/p7O6amhqKCFd6FnczxHBSqiM+kqHje pRqJDLqVRg8UFHrOzpahq/mg6jN8+JaEzX/Ox4kBSkSv53Rv8QcAmQm4HtKuwIuvNa/Wt3 +Qvd5yNpFRXIy53mJD87a77tfIf9Gts= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=d8e6F3HqEE0x4iPGnHEvC8Ht6riximn+mFoIVOHHMnY=; b=ocA3t8AYcHN/sS5GtVzzKKOPVDh/Ts6RPkikkWdm85VdPp/bItfpOOBedYWUu6nUUr OctqR9GAVxsRHaLd0+cFZe5TexL3wtEk7SCGrJoTERyzVcsXyVKdDwCPlWpwadzSC19W sXE9vHIDhrb4++WoMjuIOp3esNyk9IHGXlbsolA/y0XZzUc9u3dLoJXJ2IOCC8JuxwUJ dnU8MCBC/3gmUaRROv9J7Z1QpFUKbbSeXo0IhOYTfF55yG/8DU7NVDccIOjsR/3QadxM 2vRASrp6WY7Pyl2WIX0uJJCqKFrVpuQAy8gD2pdVowZqHUMY6XN8djnTH61B47PMBpjf ly6A== X-Gm-Message-State: APjAAAU1oCQtzyf5ESZF2r1C6eTxNQ3X8s4aQlfk+zf5e89sVNR3iO+R YTpTl1WDjRRweSx1UVurQiel0JdiQc3vdNU8RORXQW4cK5TkGm8uUb35DtbMgIrdfZH6OZehhNp 14qglQbadfSoSRJc= X-Received: by 2002:a1c:670a:: with SMTP id b10mr11318159wmc.2.1581782843096; Sat, 15 Feb 2020 08:07:23 -0800 (PST) X-Google-Smtp-Source: APXvYqziF1UIS6+lmgyIdT2IxhVdJc63drWLai8tkYBPVSLGT8C7ke6WufVmOX1aWniDmkaGzy5aNQ== X-Received: by 2002:a1c:670a:: with SMTP id b10mr11318145wmc.2.1581782842914; Sat, 15 Feb 2020 08:07:22 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 3/3] tools/virtiofsd/fuse_lowlevel: Fix fuse_out_header.error value Date: Sat, 15 Feb 2020 17:07:16 +0100 Message-Id: <20200215160716.1262-4-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200215160716.1262-1-philmd@redhat.com> References: <20200215160716.1262-1-philmd@redhat.com> MIME-Version: 1.0 X-MC-Unique: V9BeUBltNOWmc0a31Oe1Eg-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Dr. David Alan Gilbert" , Stefan Hajnoczi Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Fix warning reported by Clang static code analyzer: CC tools/virtiofsd/fuse_lowlevel.o tools/virtiofsd/fuse_lowlevel.c:195:9: warning: Value stored to 'error' i= s never read error =3D -ERANGE; ^ ~~~~~~~ Fixes: 2de121f01e Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: J=C3=A1n Tomko --- RFC because untested --- tools/virtiofsd/fuse_lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowleve= l.c index 704c0369b2..2dd36ec03b 100644 --- a/tools/virtiofsd/fuse_lowlevel.c +++ b/tools/virtiofsd/fuse_lowlevel.c @@ -192,7 +192,7 @@ int fuse_send_reply_iov_nofree(fuse_req_t req, int erro= r, struct iovec *iov, =20 if (error <=3D -1000 || error > 0) { fuse_log(FUSE_LOG_ERR, "fuse: bad error value: %i\n", error); - error =3D -ERANGE; + out.error =3D -ERANGE; } =20 iov[0].iov_base =3D &out; --=20 2.21.1