mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 09:26:44 +07:00
ARM: OMAP3+: SmartReflex: micro-optimization for sanity check
val && (val != 1) == val > 1 Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Jean Pihet <j-pihet@ti.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
This commit is contained in:
parent
4018bfebc6
commit
d617369219
@ -886,7 +886,7 @@ static int omap_sr_autocomp_store(void *data, u64 val)
|
||||
}
|
||||
|
||||
/* Sanity check */
|
||||
if (val && (val != 1)) {
|
||||
if (val > 1) {
|
||||
pr_warning("%s: Invalid argument %lld\n", __func__, val);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user