From patchwork Wed Apr 26 12:53:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zihan Yang X-Patchwork-Id: 9701331 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0F583603F6 for ; Wed, 26 Apr 2017 12:55:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F35C02015F for ; Wed, 26 Apr 2017 12:55:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E607328606; Wed, 26 Apr 2017 12:55:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 760482015F for ; Wed, 26 Apr 2017 12:55:10 +0000 (UTC) Received: from localhost ([::1]:55075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3MTN-0006RO-Ep for patchwork-qemu-devel@patchwork.kernel.org; Wed, 26 Apr 2017 08:55:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3MS7-0006Mf-Af for qemu-devel@nongnu.org; Wed, 26 Apr 2017 08:53:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3MS6-0005Vz-Di for qemu-devel@nongnu.org; Wed, 26 Apr 2017 08:53:51 -0400 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:36366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3MS6-0005Vk-82 for qemu-devel@nongnu.org; Wed, 26 Apr 2017 08:53:50 -0400 Received: by mail-pf0-x242.google.com with SMTP id v14so15651795pfd.3 for ; Wed, 26 Apr 2017 05:53:50 -0700 (PDT) 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=wpQLiX07oxsmAyPcqJiazx/ekscOxR9wnWg+s+cVcfM=; b=Qq3+q2ngEOjqZ/Icur64bveQ+3n2uzCAkkamIEJCk2JNHTonRZHN1oWDlgkMYtv962 mucjWrLSyaejIETvpgfZ1ibSWp2ZE+avnnHBFsHGMY9+NC3gBix3YCLv+NJwF3e6eMvq Q1Mk/HgiSNvSs0fq07f1gb846tBpihfQSEqutHh15qOgMM+p2V7xoOc/HYtfymthH9F1 jqa+SDyJYz5jaOMC7JmOQTn6NRK1lgt9IBYcckO4bWbUbKW52TT39LGAwhYPqp3tHLqn eyQhjrqKutNHsjuXf6x915Z3eZNUR9pey3kJsQUSoYWzM52bEfFV1AoJqAyitNDswIJc 5Snw== 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=wpQLiX07oxsmAyPcqJiazx/ekscOxR9wnWg+s+cVcfM=; b=qnuGC6ISM3HdlboF2fEogPa8dCjVaMM+0h4KqVfdUYEro+xbWCSuU3EszRdDRq34eM /WPq2tZLm4etBaBw4s5jAX9ItQF45eYqOl9pQKDUh1yfawgS1l63EG0e1xHhBG9n7koL JNHaIA9fUc1nA6Y5P+WGxNFq7b2pC15I2zXTKWSa5Y9h+yJh2LjB+5YVyvGTRgxtPaOT /9BKIQ9tGse8NPs0xzyd0rBYNH4pMckiCPpE3kxF7I0o3+6fLD9CcBEwSsZFE5l/EvRK c3yOX6Q4VNbya89k47TZVizGe09NHZXHEg4flqUZwh6jzN8hzgi3Y+yHB3g5qnnhr7eo PKHw== X-Gm-Message-State: AN3rC/5DUneBNFk5x9mdpvTs4WZmHt0bR0Ib3VcaVG0JQbHY8UckTThe 5FCY4XmN1fkW9g== X-Received: by 10.98.101.5 with SMTP id z5mr30895643pfb.96.1493211229309; Wed, 26 Apr 2017 05:53:49 -0700 (PDT) Received: from fma-dfsg.ipads-lab.se.sjtu.edu.cn ([69.85.85.101]) by smtp.gmail.com with ESMTPSA id 3sm369324pge.12.2017.04.26.05.53.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Apr 2017 05:53:48 -0700 (PDT) From: Zihan Yang To: qemu-devel@nongnu.org Date: Wed, 26 Apr 2017 20:53:08 +0800 Message-Id: <1493211188-24086-5-git-send-email-tgnyang@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493211188-24086-1-git-send-email-tgnyang@gmail.com> References: <1493211188-24086-1-git-send-email-tgnyang@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::242 Subject: [Qemu-devel] [PATCH 5/5] hw/audio: convert exit callback in HDACodecDeviceClass to void X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zihan Yang , Gerd Hoffmann Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The exit callback always return 0, convert it to void Signed-off-by: Zihan Yang --- hw/audio/hda-codec.c | 3 +-- hw/audio/intel-hda.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c index 52d4640..5402cd1 100644 --- a/hw/audio/hda-codec.c +++ b/hw/audio/hda-codec.c @@ -520,7 +520,7 @@ static int hda_audio_init(HDACodecDevice *hda, const struct desc_codec *desc) return 0; } -static int hda_audio_exit(HDACodecDevice *hda) +static void hda_audio_exit(HDACodecDevice *hda) { HDAAudioState *a = HDA_AUDIO(hda); HDAAudioStream *st; @@ -539,7 +539,6 @@ static int hda_audio_exit(HDACodecDevice *hda) } } AUD_remove_card(&a->card); - return 0; } static int hda_audio_post_load(void *opaque, int version) diff --git a/hw/audio/intel-hda.h b/hw/audio/intel-hda.h index d784bcf..53b78da 100644 --- a/hw/audio/intel-hda.h +++ b/hw/audio/intel-hda.h @@ -38,7 +38,7 @@ typedef struct HDACodecDeviceClass DeviceClass parent_class; int (*init)(HDACodecDevice *dev); - int (*exit)(HDACodecDevice *dev); + void (*exit)(HDACodecDevice *dev); void (*command)(HDACodecDevice *dev, uint32_t nid, uint32_t data); void (*stream)(HDACodecDevice *dev, uint32_t stnr, bool running, bool output); } HDACodecDeviceClass;