Re: [PATCH] somedriver: remove the initialization of static pointers.

2017-02-06 Thread Mathieu Poirier
On Sun, Feb 05, 2017 at 08:12:26AM +0100, AbdAllah MEZITI wrote: > On Sun, 5 Feb 2017 01:29:43 +0100 > Greg Kroah-Hartman wrote: > > > On Sat, Feb 04, 2017 at 08:39:21PM +0100, AbdAllah-MEZITI wrote: > > > In C a static pointer will be initialized to NULL (e.g: draft C99 > > > standard $6.7.8): "

Re: [PATCH] somedriver: remove the initialization of static pointers.

2017-02-04 Thread AbdAllah MEZITI
On Sun, 5 Feb 2017 01:29:43 +0100 Greg Kroah-Hartman wrote: > On Sat, Feb 04, 2017 at 08:39:21PM +0100, AbdAllah-MEZITI wrote: > > In C a static pointer will be initialized to NULL (e.g: draft C99 > > standard $6.7.8): "If an object that has static storage duration is > > not initialized explicit

Re: [PATCH] somedriver: remove the initialization of static pointers.

2017-02-04 Thread Greg Kroah-Hartman
On Sat, Feb 04, 2017 at 08:39:21PM +0100, AbdAllah-MEZITI wrote: > In C a static pointer will be initialized to NULL (e.g: draft C99 standard > $6.7.8): > "If an object that has static storage duration is not initialized > explicitly, then: > __ if it has pointer type, it is initialized to a null