From patchwork Sun Jan 17 14:53:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Minwoo Im X-Patchwork-Id: 12025423 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76FA1C433E0 for ; Sun, 17 Jan 2021 14:59:03 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0130B21D81 for ; Sun, 17 Jan 2021 14:59:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0130B21D81 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:36788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l19WA-0001Up-3l for qemu-devel@archiver.kernel.org; Sun, 17 Jan 2021 09:59:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l19RI-0004QZ-Lm; Sun, 17 Jan 2021 09:54:00 -0500 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:39263) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l19RG-00042q-Ti; Sun, 17 Jan 2021 09:54:00 -0500 Received: by mail-pj1-x102b.google.com with SMTP id u4so8049924pjn.4; Sun, 17 Jan 2021 06:53:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LPwEuV0/04eVLqoLUFPzyx3q6xjC8+PXkwPXg+pptj4=; b=byfhCWBSdqF5R6vdqmx/S05qNCC3AWQ9oePLjRmHjV7Xe5uYCww3sDqOe8FaJjH91P 7q/BWlYVk6bnRoyd8U9Il0p4dUcQ4UsmtfNI6vhe3LudY1ss3j4nWO6YG+BBDUErqZ+f xhINovf+lmGrSD+SohsalO4gh/w4X+FddzVBZuaBbNGdLFa92AACL5DeYhkJfAHa2q3C HOYZB5tdQOa5GlqukghRdvweApdGHnVj7eezru3DaaBnL69IZp8gI5cTjHQw54Tai3Y9 z1xaZZawZp+DLkBOkwcXLkF31ztYC2zG0WCNPnIqkoXzpEu0yPVc0U7tET2LN5FhpOyl dI3Q== 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; bh=LPwEuV0/04eVLqoLUFPzyx3q6xjC8+PXkwPXg+pptj4=; b=ah8tQjDgbbZTrGip/bIUUPGQBgcUS+/q8qLaUo8x4DrfxNQnQuv/zA7R5P9YLDvT1e XommEju9KQ/ghy0ARfq8FaWptHRAyeeMrb1sflR/Z8fHc1a4+KGe76dhsXeZ5mfQufyB rkvxPoIDyReD9M+3zGnyftEsmdOx50koMo59EC3W5zr0fLnj6w13eadgkOzToXLGJokO Qjwfch3RjMSj2vrsI3+90q4Y//w0pKIZbXTkKTScWtFgI7vclhMBGBIEWT8ir8yKQJBj a3c3//PFCiFR64TPzPxrWeCM/6HPMI/FbjCYREwieKyPvIDrmXTV+LxPkTMRzyYOC97E 5BwQ== X-Gm-Message-State: AOAM5312Hhh89vgCZZGwXdM112LdCbAvAW6VzWAn92LK5BrkIqXwBRHW yqPy6A8hg6za739+lnwFWg4g4eCcOVpYgQ== X-Google-Smtp-Source: ABdhPJxhhz9LCy77eyWRjQFyJJDMPo7BHNb80WR6nPRpXwLjx6NRkSFp5uknaE/p64LYZq5qm39a7w== X-Received: by 2002:a17:90a:a60d:: with SMTP id c13mr21587281pjq.11.1610895237212; Sun, 17 Jan 2021 06:53:57 -0800 (PST) Received: from localhost.localdomain ([211.108.35.36]) by smtp.gmail.com with ESMTPSA id x127sm13143583pfb.74.2021.01.17.06.53.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 06:53:56 -0800 (PST) From: Minwoo Im To: qemu-devel@nongnu.org, qemu-block@nongnu.org Subject: [RFC PATCH V2 03/11] hw/block/nvme: remove unused argument in nvme_ns_init_blk Date: Sun, 17 Jan 2021 23:53:33 +0900 Message-Id: <20210117145341.23310-4-minwoo.im.dev@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210117145341.23310-1-minwoo.im.dev@gmail.com> References: <20210117145341.23310-1-minwoo.im.dev@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=minwoo.im.dev@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Keith Busch , Klaus Jensen , Minwoo Im , Kevin Wolf , Max Reitz Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Removed no longer used aregument NvmeCtrl object in nvme_ns_init_blk(). Signed-off-by: Minwoo Im Reviewed-by: Klaus Jensen --- hw/block/nvme-ns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/block/nvme-ns.c b/hw/block/nvme-ns.c index c403cd36b6bd..fc42ae184e01 100644 --- a/hw/block/nvme-ns.c +++ b/hw/block/nvme-ns.c @@ -66,7 +66,7 @@ static int nvme_ns_init(NvmeNamespace *ns, Error **errp) return 0; } -static int nvme_ns_init_blk(NvmeCtrl *n, NvmeNamespace *ns, Error **errp) +static int nvme_ns_init_blk(NvmeNamespace *ns, Error **errp) { if (!blkconf_blocksizes(&ns->blkconf, errp)) { return -1; @@ -306,7 +306,7 @@ int nvme_ns_setup(NvmeCtrl *n, NvmeNamespace *ns, Error **errp) return -1; } - if (nvme_ns_init_blk(n, ns, errp)) { + if (nvme_ns_init_blk(ns, errp)) { return -1; }