projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
844e965
)
ldlinux, cli: Do not assign 'comm_counter' unnecessarily
author
Matt Fleming
<matt.fleming@linux.intel.com>
Wed, 6 Apr 2011 11:59:29 +0000
(12:59 +0100)
committer
Matt Fleming
<matt.fleming@linux.intel.com>
Sat, 16 Apr 2011 13:46:37 +0000
(14:46 +0100)
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>
com32/elflink/ldlinux/cli.c
patch
|
blob
|
history
diff --git
a/com32/elflink/ldlinux/cli.c
b/com32/elflink/ldlinux/cli.c
index
0884525
..
2f3ef29
100644
(file)
--- 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;