diff --git a/lib/lcm.c b/lib/lcm.c index 01b3aa922dda39ee1eec7e37e285c1d1339ce910..51cc6b13cd52d3fb94bc15294a67a20e8df84db1 100644 --- a/lib/lcm.c +++ b/lib/lcm.c @@ -8,9 +8,7 @@ unsigned long lcm(unsigned long a, unsigned long b) { if (a && b) return (a / gcd(a, b)) * b; - else if (b) - return b; - - return a; + else + return 0; } EXPORT_SYMBOL_GPL(lcm);