From patchwork Tue Mar 23 21:25:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Contreras X-Patchwork-Id: 87771 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2NLQBV1018061 for ; Tue, 23 Mar 2010 21:26:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753651Ab0CWV0c (ORCPT ); Tue, 23 Mar 2010 17:26:32 -0400 Received: from mail-bw0-f209.google.com ([209.85.218.209]:46268 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753524Ab0CWV0b (ORCPT ); Tue, 23 Mar 2010 17:26:31 -0400 Received: by mail-bw0-f209.google.com with SMTP id 1so2292192bwz.21 for ; Tue, 23 Mar 2010 14:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=JXyUJwC943ihn6VBJCHQk80iKsXICrsHydN0LxdDe1w=; b=jpY9C9dIIe8GIlA+p94fYGEI+IoxMVl1lN8mE+rzBHAhWL/aE2e9f864TxQyHcRFUl 5ZMVK9Nutu9QRJiwKXkKlYT7PqADOh0HIcw03/JtJJvXZpYuMfNmBT22FA4+e7GNkJBF kt/UH3A161pR2eNY9Qw4KnCXGbLmUylZXvTMM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=abE101nDNkDCkB5oZuKgLu6ms0kOxliA14z3C8vzSznpQmM9uuh/oAD7JrCIuYKgNb dB2BDplxgKpNRlQfPI0WpgmbGNPPJ06yPbvMQ+Dr9LWPVCEd2SUR/qD2zoSozAViOdBJ 50CCSNQy6u6qTKCyQY3YHMDr8hILim1y6nPkg= Received: by 10.204.7.194 with SMTP id e2mr5623113bke.103.1269379590701; Tue, 23 Mar 2010 14:26:30 -0700 (PDT) Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80]) by mx.google.com with ESMTPS id 16sm2596534bwz.5.2010.03.23.14.26.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Mar 2010 14:26:30 -0700 (PDT) From: Felipe Contreras To: linux-omap Cc: Ameya Palande , Omar Ramirez Luna , Felipe Contreras Subject: [PATCH 07/10] dsp-bridge: deh: fix obvious return codes Date: Tue, 23 Mar 2010 23:25:39 +0200 Message-Id: <1269379542-11892-8-git-send-email-felipe.contreras@gmail.com> X-Mailer: git-send-email 1.7.0.3 In-Reply-To: <1269379542-11892-1-git-send-email-felipe.contreras@gmail.com> References: <1269379542-11892-1-git-send-email-felipe.contreras@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 23 Mar 2010 21:26:33 +0000 (UTC) diff --git a/drivers/dsp/bridge/wmd/ue_deh.c b/drivers/dsp/bridge/wmd/ue_deh.c index 0a03e09..1add675 100644 --- a/drivers/dsp/bridge/wmd/ue_deh.c +++ b/drivers/dsp/bridge/wmd/ue_deh.c @@ -139,7 +139,7 @@ dsp_status bridge_deh_destroy(struct deh_mgr *hdeh_mgr) struct deh_mgr *deh_mgr_obj = (struct deh_mgr *)hdeh_mgr; if (!MEM_IS_VALID_HANDLE(deh_mgr_obj, SIGNATURE)) - return DSP_SOK; + return DSP_EHANDLE; /* Release dummy VA buffer */ bridge_deh_release_dummy_mem(); @@ -165,7 +165,7 @@ dsp_status bridge_deh_register_notify(struct deh_mgr *hdeh_mgr, u32 event_mask, struct deh_mgr *deh_mgr_obj = (struct deh_mgr *)hdeh_mgr; if (!MEM_IS_VALID_HANDLE(deh_mgr_obj, SIGNATURE)) - return DSP_SOK; + return DSP_EHANDLE; return ntfy_register(deh_mgr_obj->ntfy_obj, hnotification, event_mask, notify_type);