mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
Commit removes, resp. moves further in the code, unnecessary query to IPMI
device in ipmi_lanp_main(). It doesn't make sense to query IPMI device only to show help and terminate immediately. Commited for Duncan Idaho
This commit is contained in:
parent
8ed8ace59d
commit
53df70235f
@ -2230,7 +2230,7 @@ int
|
|||||||
ipmi_lanp_main(struct ipmi_intf * intf, int argc, char ** argv)
|
ipmi_lanp_main(struct ipmi_intf * intf, int argc, char ** argv)
|
||||||
{
|
{
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
uint8_t chan = find_lan_channel(intf, 1);
|
uint8_t chan = 0;
|
||||||
|
|
||||||
if (argc == 0) {
|
if (argc == 0) {
|
||||||
print_lan_usage();
|
print_lan_usage();
|
||||||
@ -2238,7 +2238,11 @@ ipmi_lanp_main(struct ipmi_intf * intf, int argc, char ** argv)
|
|||||||
} else if (strncmp(argv[0], "help", 4) == 0) {
|
} else if (strncmp(argv[0], "help", 4) == 0) {
|
||||||
print_lan_usage();
|
print_lan_usage();
|
||||||
return 0;
|
return 0;
|
||||||
} else if (strncmp(argv[0], "printconf", 9) == 0 ||
|
}
|
||||||
|
|
||||||
|
chan = find_lan_channel(intf, 1);
|
||||||
|
|
||||||
|
if (strncmp(argv[0], "printconf", 9) == 0 ||
|
||||||
strncmp(argv[0], "print", 5) == 0)
|
strncmp(argv[0], "print", 5) == 0)
|
||||||
{
|
{
|
||||||
if (argc > 2) {
|
if (argc > 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user