From patchwork Wed Jul 8 00:11:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 29565 Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id C90D2B708B for ; Wed, 8 Jul 2009 10:23:33 +1000 (EST) Received: by ozlabs.org (Postfix) id 70D60DEDD0; Wed, 8 Jul 2009 10:20:55 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 6E4CFDEDCF for ; Wed, 8 Jul 2009 10:20:55 +1000 (EST) X-Original-To: cbe-oss-dev@ozlabs.org Delivered-To: cbe-oss-dev@ozlabs.org Received: from hera.kernel.org (hera.kernel.org [140.211.167.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5C76EDDF8C; Wed, 8 Jul 2009 10:18:25 +1000 (EST) Received: from hera.kernel.org (IDENT:U2FsdGVkX1/p9ppT1W33MokrdP1WikoKrUZ3vUw9vPo@localhost [127.0.0.1]) by hera.kernel.org (8.14.2/8.14.2) with ESMTP id n680IJJ6026682 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Jul 2009 00:18:19 GMT Received: (from geoff@localhost) by hera.kernel.org (8.14.2/8.13.1/Submit) id n680IIuI026681; Wed, 8 Jul 2009 00:18:18 GMT Message-Id: <20090708001136.433580126@am.sony.com> User-Agent: quilt/0.47-1 Date: Tue, 07 Jul 2009 17:11:56 -0700 From: Geoff Levand To: Jeremy Kerr In-Reply-To: <20090708001134.934244536@am.sony.com> References: <20090708001134.934244536@am.sony.com> Content-Disposition: inline; filename=nc-ked-remove-boot.diff X-Virus-Scanned: ClamAV 0.93.3/9541/Tue Jul 7 17:31:53 2009 on hera.kernel.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hera.kernel.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Wed, 08 Jul 2009 00:18:19 +0000 (UTC) Cc: cbe-oss-dev@ozlabs.org Subject: [Cbe-oss-dev] [patch 22/31] petitboot: Remove unused ked status ked_boot. X-BeenThere: cbe-oss-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Discussion about Open Source Software for the Cell Broadband Engine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Remove unused code for the ked return status ked_boot. Signed-off-by: Geoff Levand --- ui/ncurses/nc-cui.c | 7 +------ ui/ncurses/nc-ked.h | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) --- a/ui/ncurses/nc-cui.c +++ b/ui/ncurses/nc-cui.c @@ -140,7 +140,7 @@ static void cui_ked_on_exit(struct ked * { struct cui *cui = cui_from_arg(ked->scr.ui_ctx); - if (ked_result == ked_update || ked_result == ked_boot) { + if (ked_result == ked_update) { struct pmenu_item *i = pmenu_find_selected(cui->main); struct cui_opt_data *cod = cod_from_item(i); @@ -159,11 +159,6 @@ static void cui_ked_on_exit(struct ked * cui_set_current(cui, &cui->main->scr); talloc_free(ked); - - if (ked_result == ked_boot) { - struct pmenu_item *i = pmenu_find_selected(cui->main); - i->on_execute(i); - } } int cui_ked_run(struct pmenu_item *item) --- a/ui/ncurses/nc-ked.h +++ b/ui/ncurses/nc-ked.h @@ -40,13 +40,11 @@ enum ked_attr_cursor { * enum ked_result - Result code for ked:on_exit(). * @ked_cancel: The user canceled the operation. * @ked_update: The args were updated. - * @ked_boot: The user requested a boot of this item. */ enum ked_result { ked_cancel, ked_update, - ked_boot, }; /**