From patchwork Thu Sep 3 11:44:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 45343 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n83BiRFb009055 for ; Thu, 3 Sep 2009 11:45:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755024AbZICLpA (ORCPT ); Thu, 3 Sep 2009 07:45:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755025AbZICLpA (ORCPT ); Thu, 3 Sep 2009 07:45:00 -0400 Received: from smtp.nokia.com ([192.100.122.230]:22501 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755023AbZICLo7 (ORCPT ); Thu, 3 Sep 2009 07:44:59 -0400 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n83Bihhf027570 for ; Thu, 3 Sep 2009 14:44:52 +0300 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 3 Sep 2009 14:44:37 +0300 Received: from mgw-sa02.ext.nokia.com ([147.243.1.48]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 3 Sep 2009 14:44:36 +0300 Received: from dilbert.research.nokia.com (esdhcp034223.research.nokia.com [172.21.34.223]) by mgw-sa02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n83BiZHS001879 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Thu, 3 Sep 2009 14:44:35 +0300 Received: from andy by dilbert.research.nokia.com with local (Exim 4.69) (envelope-from ) id 1MjAjt-0006vM-AD; Thu, 03 Sep 2009 14:44:29 +0300 From: Andy Shevchenko To: linux-omap@vger.kernel.org Cc: Andy Shevchenko Subject: [PATCH] DSPBRIDGE: remove unsed piece of code Date: Thu, 3 Sep 2009 14:44:29 +0300 Message-Id: <1251978269-26597-1-git-send-email-andy.shevchenko@gmail.com> X-Mailer: git-send-email 1.5.6.5 X-OriginalArrivalTime: 03 Sep 2009 11:44:36.0965 (UTC) FILETIME=[E9E4E950:01CA2C8B] Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Andy Shevchenko I doubt about usefulness of removed piece of code. But it seems to be not used because of unchanged value of bJustWokeDSP. Signed-off-by: Andy Shevchenko --- drivers/dsp/bridge/rmgr/node.c | 17 ----------------- 1 files changed, 0 insertions(+), 17 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/node.c b/drivers/dsp/bridge/rmgr/node.c index e213b22..a156182 100644 --- a/drivers/dsp/bridge/rmgr/node.c +++ b/drivers/dsp/bridge/rmgr/node.c @@ -1278,7 +1278,6 @@ DSP_STATUS NODE_Create(struct NODE_OBJECT *hNode) enum NODE_TYPE nodeType; DSP_STATUS status = DSP_SOK; DSP_STATUS status1 = DSP_SOK; - bool bJustWokeDSP = false; struct DSP_CBDATA cbData; u32 procId = 255; struct DSP_PROCESSORSTATE procStatus; @@ -1429,22 +1428,6 @@ func_cont2: /* Put back in NODE_ALLOCATED state if error occurred */ NODE_SetState(hNode, NODE_ALLOCATED); } - if (procId == DSP_UNIT) { - /* If node create failed, see if should sleep DSP now */ - if (bJustWokeDSP == true) { - /* Check to see if partial create happened on DSP */ - if (hNode->nodeEnv == (u32)NULL) { - /* No environment allocated on DSP, re-sleep - * DSP now */ - PROC_Ctrl(hNode->hProcessor, WMDIOCTL_DEEPSLEEP, - &cbData); - } else { - /* Increment count, sleep later when node fully - * deleted */ - hNodeMgr->uNumCreated++; - } - } - } func_cont: /* Free access to node dispatcher */ (void)SYNC_LeaveCS(hNodeMgr->hSync);