summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-cui.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-06-24 13:03:14 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-06-24 13:07:58 +0800
commit25040e7122e3b2b5c9f5aa60d2f98db3566a03fe (patch)
tree56d69140904c85cc376828927cfcd947559a8031 /ui/ncurses/nc-cui.c
parented6021ebefa8b56604cdbb23a1c38008ed88b8c7 (diff)
downloadtalos-petitboot-25040e7122e3b2b5c9f5aa60d2f98db3566a03fe.tar.gz
talos-petitboot-25040e7122e3b2b5c9f5aa60d2f98db3566a03fe.zip
ui/ncurses: Remove unused 'cod' variable
When configured with --disable-debug, we get an unused variable warning: ui/ncurses/nc-cui.c: In function 'cui_device_remove': ui/ncurses/nc-cui.c:439:24: error: unused variable 'cod' cc1: all warnings being treated as errors This change just removes the temporary variable. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-cui.c')
-rw-r--r--ui/ncurses/nc-cui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index 1acc2f0..99955b3 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -436,9 +436,8 @@ static void cui_device_remove(struct device *dev, void *arg)
list_for_each_entry(&dev->boot_options, opt, list) {
struct pmenu_item *i = pmenu_item_from_arg(opt->ui_info);
- struct cui_opt_data *cod = cod_from_item(i);
- assert(pb_protocol_device_cmp(dev, cod->dev));
+ assert(pb_protocol_device_cmp(dev, cod_from_item(i)->dev));
pmenu_remove(cui->main, i);
}
OpenPOWER on IntegriCloud