From patchwork Tue Nov 1 05:11:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Koi X-Patchwork-Id: 123024 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 60D85B6F8C for ; Tue, 1 Nov 2011 16:12:28 +1100 (EST) Received: from localhost ([::1]:40990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RL6dw-0003by-LX for incoming@patchwork.ozlabs.org; Tue, 01 Nov 2011 01:12:12 -0400 Received: from eggs.gnu.org ([140.186.70.92]:36434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RL6dq-0003bo-RC for qemu-devel@nongnu.org; Tue, 01 Nov 2011 01:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RL6dp-0000WL-Os for qemu-devel@nongnu.org; Tue, 01 Nov 2011 01:12:06 -0400 Received: from mail-gy0-f173.google.com ([209.85.160.173]:55576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RL6dp-0000W9-LP for qemu-devel@nongnu.org; Tue, 01 Nov 2011 01:12:05 -0400 Received: by gya6 with SMTP id 6so3141807gya.4 for ; Mon, 31 Oct 2011 22:12:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=mAUKf/vTkjy6O+c4hvWBCnkwXkntjEaM5w56BmqBG8s=; b=D/lC+zvCa+wz8CQj0EF0O0KApt0Gob94g2fK1nHWFFPlR53to4BCjF7AsfTAUBWz5/ ls7Vf2uxA2HOEvMzEF/e92dYUjxBI3Xgq43OocI+PKsGkR9xtcCafNUhb+VPRHbLH+Th laDfiutWQTuc/F0zt8UCEaFtUNbKk6Cw3duAM= Received: by 10.182.36.100 with SMTP id p4mr3506953obj.65.1320124325163; Mon, 31 Oct 2011 22:12:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.112.2 with HTTP; Mon, 31 Oct 2011 22:11:44 -0700 (PDT) From: Jun Koi Date: Tue, 1 Nov 2011 13:11:44 +0800 Message-ID: To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.173 Subject: [Qemu-devel] [patch] remove unused function arg in qemu_iohandler_poll() and qemu_iohandler_fill() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch removes unused function argument xfds from qemu_iohandler_poll() and qemu_iohandler_fill() Signed-off-by: Jun Koi void qemu_bh_schedule_idle(QEMUBH *bh); int qemu_bh_poll(void); (END) diff --git a/iohandler.c b/iohandler.c index 5640d49..9963790 100644 --- a/iohandler.c +++ b/iohandler.c @@ -89,7 +89,7 @@ int qemu_set_fd_handler(int fd, return qemu_set_fd_handler2(fd, NULL, fd_read, fd_write, opaque); } -void qemu_iohandler_fill(int *pnfds, fd_set *readfds, fd_set *writefds, fd_set *xfds) +void qemu_iohandler_fill(int *pnfds, fd_set *readfds, fd_set *writefds) { IOHandlerRecord *ioh; @@ -111,7 +111,7 @@ void qemu_iohandler_fill(int *pnfds, fd_set *readfds, fd_set *writefds, fd_set * } } -void qemu_iohandler_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds, int ret) +void qemu_iohandler_poll(fd_set *readfds, fd_set *writefds, int ret) { if (ret > 0) { IOHandlerRecord *pioh, *ioh; diff --git a/main-loop.c b/main-loop.c index 60e9748..7cbb0b0 100644 --- a/main-loop.c +++ b/main-loop.c @@ -446,7 +446,7 @@ int main_loop_wait(int nonblocking) #ifdef CONFIG_SLIRP slirp_select_fill(&nfds, &rfds, &wfds, &xfds); #endif - qemu_iohandler_fill(&nfds, &rfds, &wfds, &xfds); + qemu_iohandler_fill(&nfds, &rfds, &wfds); glib_select_fill(&nfds, &rfds, &wfds, &xfds, &tv); if (timeout > 0) { @@ -460,7 +460,7 @@ int main_loop_wait(int nonblocking) } glib_select_poll(&rfds, &wfds, &xfds, (ret < 0)); - qemu_iohandler_poll(&rfds, &wfds, &xfds, ret); + qemu_iohandler_poll(&rfds, &wfds, ret); #ifdef CONFIG_SLIRP slirp_select_poll(&rfds, &wfds, &xfds, (ret < 0)); #endif diff --git a/main-loop.h b/main-loop.h index 8a716b1..f753c6a 100644 --- a/main-loop.h +++ b/main-loop.h @@ -341,8 +341,8 @@ void qemu_mutex_unlock_iothread(void); /* internal interfaces */ -void qemu_iohandler_fill(int *pnfds, fd_set *readfds, fd_set *writefds, fd_set *xfds); -void qemu_iohandler_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds, int rc); +void qemu_iohandler_fill(int *pnfds, fd_set *readfds, fd_set *writefds); +void qemu_iohandler_poll(fd_set *readfds, fd_set *writefds, int rc);