mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID:402 - Misguiding error print-out when using some 'lan' commands.
Redundant call for find_lan_channel() for several 'lan' commands produces misguiding error output. Those commands require expicit specification of the channel number and calling to find_lan_channel() for them is useless. For the rest 'lan' commands which allow ommiting of the channels number, the find_lan_channel() is called additionally.
This commit is contained in:
parent
c56b5c9667
commit
14368335b2
@ -2451,8 +2451,6 @@ ipmi_lanp_main(struct ipmi_intf * intf, int argc, char ** argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
chan = find_lan_channel(intf, 1);
|
|
||||||
|
|
||||||
if (strncmp(argv[0], "printconf", 9) == 0 ||
|
if (strncmp(argv[0], "printconf", 9) == 0 ||
|
||||||
strncmp(argv[0], "print", 5) == 0)
|
strncmp(argv[0], "print", 5) == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user