Re: [PATCH 2/2] lib/lcm.c: lcm(n,0)=lcm(0,n) is 0, not n

2015-03-30 Thread Rasmus Villemoes
On Sun, Mar 29 2015, Mike Snitzer wrote: > On Tue, Dec 9, 2014 at 4:03 PM, Rasmus Villemoes > wrote: >> Return the mathematically correct answer when an argument is 0. >> >> Signed-off-by: Rasmus Villemoes > > This change is the source of 3.19 regression for stacking device > limits, via commit

Re: [PATCH 2/2] lib/lcm.c: lcm(n,0)=lcm(0,n) is 0, not n

2015-03-28 Thread Mike Snitzer
On Tue, Dec 9, 2014 at 4:03 PM, Rasmus Villemoes wrote: > Return the mathematically correct answer when an argument is 0. > > Signed-off-by: Rasmus Villemoes > --- > lib/lcm.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/lib/lcm.c b/lib/lcm.c > index 01b3aa922dd

[PATCH 2/2] lib/lcm.c: lcm(n,0)=lcm(0,n) is 0, not n

2014-12-09 Thread Rasmus Villemoes
Return the mathematically correct answer when an argument is 0. Signed-off-by: Rasmus Villemoes --- lib/lcm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/lcm.c b/lib/lcm.c index 01b3aa922dda..51cc6b13cd52 100644 --- a/lib/lcm.c +++ b/lib/lcm.c @@ -8,9 +8,7 @@ un

[PATCH 2/2] lib/lcm.c: lcm(n,0)=lcm(0,n) is 0, not n

2013-12-17 Thread Rasmus Villemoes
Return the mathematically correct answer when an argument is 0. Signed-off-by: Rasmus Villemoes --- I don't think there is any instance of lcm(0,n) in the kernel, but at least this reduces code size a little. lib/lcm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/li