mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
lib/lcm.c: lcm(n,0)=lcm(0,n) is 0, not n
Return the mathematically correct answer when an argument is 0. Signed-off-by: Rasmus Villemoes <[email protected]> Cc: Martin K. Petersen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
74a5fef7cb
commit
69c953c85c
1 file changed
+2
-4