summaryrefslogtreecommitdiff
path: root/bin/nv_aux.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/nv_aux.c')
-rw-r--r--bin/nv_aux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nv_aux.c b/bin/nv_aux.c
index 9b5204736..a1e4fe81f 100644
--- a/bin/nv_aux.c
+++ b/bin/nv_aux.c
@@ -49,7 +49,7 @@ main(int argc, char **argv)
if (addr > 0x000fffff)
return -EINVAL;
} else
- if (action >= 1 && data < 0) {
+ if (action >= 1 && val < 0) {
val = strtoul(optarg, NULL, 0);
if (val > 0xff)
return -EINVAL;