summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trafgen.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/trafgen.c b/trafgen.c
index eec34ea..36694d2 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -1087,14 +1087,9 @@ int main(int argc, char **argv)
ctx.num = orig_num;
break;
case 't':
- ptr = optarg;
- gap = strtoul(optarg, NULL, 0);
-
- for (j = i = strlen(optarg); i > 0; --i) {
- if (!isdigit(optarg[j - i]))
- break;
- ptr++;
- }
+ gap = strtoul(optarg, &ptr, 0);
+ if (!gap && optarg == ptr)
+ panic("Invalid gap param\n");
if (!strncmp(ptr, "ns", strlen("ns"))) {
delay.tv_sec = gap / 1000000000;
nt status information that can be selected by setting LED mode. LED Mode parameter (vsc8531, led-0-mode) and (vsc8531, led-1-mode) get from Device Tree. Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microsemi.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/soc/codecs/wm8580.h')