From nobody Sun May 19 04:34:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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 (zoho.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 ARC-Seal: i=1; a=rsa-sha256; t=1563356872; cv=none; d=zoho.com; s=zohoarc; b=Dz2pxR7GJpTqr0nurH1c2U8ip4idD5dWjeL7QtTiiqAmjD+mG1qelB7A5K6R2ni3vkLgJoyO7oa0+S+lw9avqdBZDO9DSsrhd3hXhQ42xTef3o3uN3oNjXcRAfl/iiCpbRvf/LaQwnSK57MukAYCbDlx40w/hzVhIjV1jgfRXIY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563356872; h=Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=Dbece1O+8+8gl9sxthTmKxvPFyZ2+lF74XZaPFS1las=; b=eCJT1gS/CGvcB1lk9HXRsV2Khlpfst7NWxJXH12ZtGpOsQUnM8Hv/r+h83IzBj7bxCFxdhCAxhhTXab7c1JZ+vTcj36/ZN8bkbtr03Fpn7ZQ3h7cb+HmDiMEV87nIcPI/Dnpfa/lvqtCSreiOwpBdGiLUvpmiBreSyBFjMS/Qyo= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.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 header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1563356872471315.4169689642938; Wed, 17 Jul 2019 02:47:52 -0700 (PDT) Received: from localhost ([::1]:55454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hngXN-0006Hi-00 for importer@patchew.org; Wed, 17 Jul 2019 05:47:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42198) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hngX8-0005qp-U2 for qemu-devel@nongnu.org; Wed, 17 Jul 2019 05:47:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hngX7-0004Rw-Tz for qemu-devel@nongnu.org; Wed, 17 Jul 2019 05:47:34 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:54575) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hngX7-0004RG-Nc for qemu-devel@nongnu.org; Wed, 17 Jul 2019 05:47:33 -0400 Received: by mail-wm1-x341.google.com with SMTP id p74so21446357wme.4 for ; Wed, 17 Jul 2019 02:47:32 -0700 (PDT) Received: from donizetti.lan ([2001:b07:6468:f312:e427:3beb:1110:dda2]) by smtp.gmail.com with ESMTPSA id 2sm28592349wrn.29.2019.07.17.02.47.30 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 02:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Dbece1O+8+8gl9sxthTmKxvPFyZ2+lF74XZaPFS1las=; b=pjImoR0RGHgu2roSw6hYlvchgivuAVySqh2qw7FWlSVZIVWFaw02O9UccH63tMgcaw rzGWs5+r0kqsrfbODyGzsDhiLHVMgxI01geKk3uwg2H1+B5D33Chrg8/Cw8mrFAIwNDQ xCaVbNJupFoXK+cUmoKe0UPdiTVBctLe6v/WAAfZ7aEQ4EoY25eOcXGUCTbPgbX2h4Pk kuIiqQ4D2QhdiPrXsNun39tb5VQHszFeoOTfv7iJ6YsRxYdorl5lvSHvPsRp2TqzWK4I U+euPUhwowvoi4+wGm2wqs6+3fvyS7LVMKVSmXMdzDdjyb9L8qTeBAgKt8XoR+jBB3lA 5jeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=Dbece1O+8+8gl9sxthTmKxvPFyZ2+lF74XZaPFS1las=; b=XDjtrvnUZHKBgTbtQLHi4jvyrrzo9uLsXm+nQQH163M+9Jt3qme8kv7BvCfjkQYsAd BTZ9Aq8mAjMB82wiInrNaZvlwi91TwsY8r+IkjYMQUDYId4SdCaQnRKjLvA6JigRjQgs lfs1LrTq2HjeOCAiOvO9gWC8+aPDcoqyXDmXnIGza3N8RCuLAibjNSCLLAfp8DgTTDVj Uz9+O6bjCEL4Eqmb0ZOkoydh+OamIxVpTQGoqyHgAQe7OlB9gbBWVkg0ReAEcmveECj+ FiOPJ4RObiLahnqGH69rUmRySjY5J8y0NDM4/NeAe9XnuH4El5gPGIZqj3VAZonkuOeE EeBA== X-Gm-Message-State: APjAAAV4jzxW60a1jJsBXii7WmF8uDtQSlnCNR5ZpdkEtCStMypWFNi2 XDC6EfHmRWde70rSAkiZ38Wqj4XqGns= X-Google-Smtp-Source: APXvYqySOnpaI4dg3k+IDJULoI8Sy7/X9Jrm2WjI7tp+tw6CMDVsuFV2IEBiP2IEBqBLbVgv7VH+og== X-Received: by 2002:a1c:a503:: with SMTP id o3mr34000090wme.37.1563356851100; Wed, 17 Jul 2019 02:47:31 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 17 Jul 2019 11:47:28 +0200 Message-Id: <20190717094728.31006-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 Subject: [Qemu-devel] [PATCH] virtio-scsi: remove unused argument to virtio_scsi_common_realize 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: , 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" The argument is not used and passing it clutters error propagation in the callers. So, get rid of it. Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Stefan Hajnoczi Tested-by: Philippe Mathieu-Daud=C3=A9 --- hw/scsi/vhost-scsi.c | 2 +- hw/scsi/vhost-user-scsi.c | 2 +- hw/scsi/virtio-scsi.c | 4 ++-- include/hw/virtio/virtio-scsi.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/scsi/vhost-scsi.c b/hw/scsi/vhost-scsi.c index 4090f99ee4..76bb875ca6 100644 --- a/hw/scsi/vhost-scsi.c +++ b/hw/scsi/vhost-scsi.c @@ -262,7 +262,7 @@ static void vhost_scsi_unrealize(DeviceState *dev, Erro= r **errp) vhost_dev_cleanup(&vsc->dev); g_free(vqs); =20 - virtio_scsi_common_unrealize(dev, errp); + virtio_scsi_common_unrealize(dev); } =20 static Property vhost_scsi_properties[] =3D { diff --git a/hw/scsi/vhost-user-scsi.c b/hw/scsi/vhost-user-scsi.c index a9fd8ea305..a0b69fbc0f 100644 --- a/hw/scsi/vhost-user-scsi.c +++ b/hw/scsi/vhost-user-scsi.c @@ -125,7 +125,7 @@ static void vhost_user_scsi_unrealize(DeviceState *dev,= Error **errp) vhost_dev_cleanup(&vsc->dev); g_free(vqs); =20 - virtio_scsi_common_unrealize(dev, errp); + virtio_scsi_common_unrealize(dev); vhost_user_cleanup(&s->vhost_user); } =20 diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index 61ce365fe9..d0bdbff090 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -922,7 +922,7 @@ static void virtio_scsi_device_realize(DeviceState *dev= , Error **errp) virtio_scsi_dataplane_setup(s, errp); } =20 -void virtio_scsi_common_unrealize(DeviceState *dev, Error **errp) +void virtio_scsi_common_unrealize(DeviceState *dev) { VirtIODevice *vdev =3D VIRTIO_DEVICE(dev); VirtIOSCSICommon *vs =3D VIRTIO_SCSI_COMMON(dev); @@ -936,7 +936,7 @@ static void virtio_scsi_device_unrealize(DeviceState *d= ev, Error **errp) VirtIOSCSI *s =3D VIRTIO_SCSI(dev); =20 qbus_set_hotplug_handler(BUS(&s->bus), NULL, &error_abort); - virtio_scsi_common_unrealize(dev, errp); + virtio_scsi_common_unrealize(dev); } =20 static Property virtio_scsi_properties[] =3D { diff --git a/include/hw/virtio/virtio-scsi.h b/include/hw/virtio/virtio-scs= i.h index 4c0bcdb788..122f7c4b6f 100644 --- a/include/hw/virtio/virtio-scsi.h +++ b/include/hw/virtio/virtio-scsi.h @@ -145,7 +145,7 @@ void virtio_scsi_common_realize(DeviceState *dev, VirtIOHandleOutput cmd, Error **errp); =20 -void virtio_scsi_common_unrealize(DeviceState *dev, Error **errp); +void virtio_scsi_common_unrealize(DeviceState *dev); bool virtio_scsi_handle_event_vq(VirtIOSCSI *s, VirtQueue *vq); bool virtio_scsi_handle_cmd_vq(VirtIOSCSI *s, VirtQueue *vq); bool virtio_scsi_handle_ctrl_vq(VirtIOSCSI *s, VirtQueue *vq); --=20 2.21.0