Re: [PATCH] drivers: i2c: muxes: fix sizeof(ptr)

2013-01-23 Thread Wolfram Sang
On Tue, Jan 08, 2013 at 02:40:09PM +0100, Laurent Navet wrote: > sizeof when applied to a pointer typed expression gives the size of > the pointer > > The semantic patch that makes this output is available > in scripts/coccinelle/misc/noderef.cocci. > > More information about semantic patching

Re: [PATCH] drivers: i2c: muxes: fix sizeof(ptr)

2013-01-23 Thread Wolfram Sang
On Tue, Jan 08, 2013 at 02:40:09PM +0100, Laurent Navet wrote: sizeof when applied to a pointer typed expression gives the size of the pointer The semantic patch that makes this output is available in scripts/coccinelle/misc/noderef.cocci. More information about semantic patching is

Re: [PATCH] drivers: i2c: muxes: fix sizeof(ptr)

2013-01-08 Thread Jean Delvare
On Tue, 8 Jan 2013 14:40:09 +0100, Laurent Navet wrote: > sizeof when applied to a pointer typed expression gives the size of > the pointer > > The semantic patch that makes this output is available > in scripts/coccinelle/misc/noderef.cocci. > > More information about semantic patching is

Re: [PATCH] drivers: i2c: muxes: fix sizeof(ptr)

2013-01-08 Thread Laurent Navet
This is not really a bug as mux->busses is a multilevel pointer, so the result of sizeof(ptr) is the same as sizeof(*ptr). But I think this is more logical and according to CodingStyle rules like this. This is also what is done for mux->states a few lines above. Regards, 2013/1/8, Laurent Navet

[PATCH] drivers: i2c: muxes: fix sizeof(ptr)

2013-01-08 Thread Laurent Navet
sizeof when applied to a pointer typed expression gives the size of the pointer The semantic patch that makes this output is available in scripts/coccinelle/misc/noderef.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Laurent Navet ---

[PATCH] drivers: i2c: muxes: fix sizeof(ptr)

2013-01-08 Thread Laurent Navet
sizeof when applied to a pointer typed expression gives the size of the pointer The semantic patch that makes this output is available in scripts/coccinelle/misc/noderef.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Laurent Navet

Re: [PATCH] drivers: i2c: muxes: fix sizeof(ptr)

2013-01-08 Thread Laurent Navet
This is not really a bug as mux-busses is a multilevel pointer, so the result of sizeof(ptr) is the same as sizeof(*ptr). But I think this is more logical and according to CodingStyle rules like this. This is also what is done for mux-states a few lines above. Regards, 2013/1/8, Laurent Navet

Re: [PATCH] drivers: i2c: muxes: fix sizeof(ptr)

2013-01-08 Thread Jean Delvare
On Tue, 8 Jan 2013 14:40:09 +0100, Laurent Navet wrote: sizeof when applied to a pointer typed expression gives the size of the pointer The semantic patch that makes this output is available in scripts/coccinelle/misc/noderef.cocci. More information about semantic patching is available