aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/cli.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-04-06 12:59:29 +0100
committerMatt Fleming <matt.fleming@linux.intel.com>2011-04-16 14:46:37 +0100
commit8f9153df73881f698c83716283acf5c2bb85029d (patch)
tree3e47a9f614129342947473c99951fa60c570972c /com32/elflink/ldlinux/cli.c
parent844e965443e08133a7a366a496d8cc52ef93ca48 (diff)
downloadsyslinux-8f9153df73881f698c83716283acf5c2bb85029d.tar.gz
syslinux-8f9153df73881f698c83716283acf5c2bb85029d.tar.xz
syslinux-8f9153df73881f698c83716283acf5c2bb85029d.zip
ldlinux, cli: Do not assign 'comm_counter' unnecessarily
There's no need to assign a value to 'comm_counter' at the start of the edit_cmdline() because it is always assigned before being used. Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/cli.c')
-rw-r--r--com32/elflink/ldlinux/cli.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/com32/elflink/ldlinux/cli.c b/com32/elflink/ldlinux/cli.c
index 08845252..2f3ef29c 100644
--- a/com32/elflink/ldlinux/cli.c
+++ b/com32/elflink/ldlinux/cli.c
@@ -141,8 +141,6 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
const char *ret;
int width = 0;
struct cli_command *comm_counter;
- comm_counter =
- list_entry(cli_history_head.next->prev, typeof(*comm_counter), list);
if (!width) {
int height;