From patchwork Mon Jan 31 05:22:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Brulebois X-Patchwork-Id: 518551 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0V5Od1m019055 for ; Mon, 31 Jan 2011 05:24:59 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 989799E99F for ; Sun, 30 Jan 2011 21:24:39 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from glenfiddich.ikibiki.org (glenfiddich.ikibiki.org [88.191.124.82]) by gabe.freedesktop.org (Postfix) with ESMTP id 1E1D59E7F8 for ; Sun, 30 Jan 2011 21:22:46 -0800 (PST) Received: from home.ikibiki.org ([88.164.242.219] helo=kitty) by glenfiddich.ikibiki.org with esmtp (Exim 4.69) (envelope-from ) id 1PjmDs-0007h9-I7; Mon, 31 Jan 2011 06:22:44 +0100 Received: from kibi by kitty with local (Exim 4.72) (envelope-from ) id 1PjmDs-0007PV-DP; Mon, 31 Jan 2011 06:22:44 +0100 From: Cyril Brulebois To: intel-gfx@lists.freedesktop.org Date: Mon, 31 Jan 2011 06:22:39 +0100 Message-Id: <1296451359-28449-5-git-send-email-kibi@debian.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1296451359-28449-1-git-send-email-kibi@debian.org> References: <1296451359-28449-1-git-send-email-kibi@debian.org> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 5/5] xvmc: Stop using uninitialized variable. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 31 Jan 2011 05:25:00 +0000 (UTC) X-MIME-Autoconverted: from base64 to 8bit by demeter1.kernel.org id p0V5Od1m019055 diff --git a/src/xvmc/intel_xvmc.c b/src/xvmc/intel_xvmc.c index d89cda2..1b96945 100644 --- a/src/xvmc/intel_xvmc.c +++ b/src/xvmc/intel_xvmc.c @@ -669,12 +669,10 @@ _X_EXPORT Status XvMCPutSurface(Display * display, XvMCSurface * surface, */ _X_EXPORT Status XvMCSyncSurface(Display * display, XvMCSurface * surface) { - Status ret; - if (!display || !surface) return XvMCBadSurface; - return ret; + return Success; } /*