Commit 087d44f6 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/wrs_watchdog: don't open HAL's shmem while getting counter

When parameter -g is used there is no need to check other parameters.
Change to avoid waiting for HAL's shmem to be available.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent cb42b967
......@@ -291,7 +291,7 @@ int main(int argc, char *argv[])
break;
case 'g':
show_counter();
break;
exit(0);
case 'n':
port_num = atoi(optarg);
pr_info("Read %d ports from cmdline\n", port_num);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment