diff --git a/src/systemcmds/param/param.c b/src/systemcmds/param/param.c index 7c5b4e8cc6..c50bb8e8dd 100644 --- a/src/systemcmds/param/param.c +++ b/src/systemcmds/param/param.c @@ -447,10 +447,7 @@ do_set(const char *name, const char *val, bool fail_on_not_found) char *end; int32_t newval = strtol(val, &end, 10); - if (i == newval) { - printf("unchanged\n"); - - } else { + if (i =!= newval) { printf("curr: %ld", (long)i); param_set(param, &newval); printf(" -> new: %ld\n", (long)newval); @@ -468,11 +465,8 @@ do_set(const char *name, const char *val, bool fail_on_not_found) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" - if (f == newval) { + if (f != newval) { #pragma GCC diagnostic pop - printf("unchanged\n"); - - } else { printf("curr: %4.4f", (double)f); param_set(param, &newval); printf(" -> new: %4.4f\n", (double)newval);