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:
Dmitry Bazhenov 2015-10-12 12:57:10 +05:00 committed by Zdenek Styblik
parent c56b5c9667
commit 14368335b2

View File

@ -2451,8 +2451,6 @@ ipmi_lanp_main(struct ipmi_intf * intf, int argc, char ** argv)
return 0;
}
chan = find_lan_channel(intf, 1);
if (strncmp(argv[0], "printconf", 9) == 0 ||
strncmp(argv[0], "print", 5) == 0)
{