Re: [PATCH v3 1/7] random: Simplify API for random address requests

2016-08-04 Thread Yann Droneaud
Hi, Le mercredi 03 août 2016 à 23:39 +, Jason Cooper a écrit : >  > diff --git a/drivers/char/random.c b/drivers/char/random.c > index 0158d3bff7e5..61cb434e3bea 100644 > --- a/drivers/char/random.c > +++ b/drivers/char/random.c > @@ -1840,6 +1840,39 @@ randomize_range(unsigned long start,

Re: [PATCH v3 1/7] random: Simplify API for random address requests

2016-08-04 Thread Yann Droneaud
Hi, Le mercredi 03 août 2016 à 23:39 +, Jason Cooper a écrit : >  > diff --git a/drivers/char/random.c b/drivers/char/random.c > index 0158d3bff7e5..61cb434e3bea 100644 > --- a/drivers/char/random.c > +++ b/drivers/char/random.c > @@ -1840,6 +1840,39 @@ randomize_range(unsigned long start,

[PATCH v3 1/7] random: Simplify API for random address requests

2016-08-03 Thread Jason Cooper
To date, all callers of randomize_range() have set the length to 0, and check for a zero return value. For the current callers, the only way to get zero returned is if end <= start. Since they are all adding a constant to the start address, this is unnecessary. We can remove a bunch of needless

[PATCH v3 1/7] random: Simplify API for random address requests

2016-08-03 Thread Jason Cooper
To date, all callers of randomize_range() have set the length to 0, and check for a zero return value. For the current callers, the only way to get zero returned is if end <= start. Since they are all adding a constant to the start address, this is unnecessary. We can remove a bunch of needless