Re: [PATCH] Removes unnecessary if statement from /drivers/block/z2ram.c

2005-03-01 Thread Adrian Bunk
On Tue, Mar 01, 2005 at 07:27:27PM +, Telemaque Ndizihiwe wrote: > > This Patch removes unnecessary if statement from a function that has no > implementation (in kernel 2.6.x and 2.4.x); the function returns 0 with > or without the if statement: > > static int z2_release(struct inode

[PATCH] Removes unnecessary if statement from /drivers/block/z2ram.c

2005-03-01 Thread Telemaque Ndizihiwe
This Patch removes unnecessary if statement from a function that has no implementation (in kernel 2.6.x and 2.4.x); the function returns 0 with or without the if statement: static int z2_release(struct inode *inode, struct file *filp) { if(current_device==-1)

[PATCH] Removes unnecessary if statement from /drivers/block/z2ram.c

2005-03-01 Thread Telemaque Ndizihiwe
This Patch removes unnecessary if statement from a function that has no implementation (in kernel 2.6.x and 2.4.x); the function returns 0 with or without the if statement: static int z2_release(struct inode *inode, struct file *filp) { if(current_device==-1)

Re: [PATCH] Removes unnecessary if statement from /drivers/block/z2ram.c

2005-03-01 Thread Adrian Bunk
On Tue, Mar 01, 2005 at 07:27:27PM +, Telemaque Ndizihiwe wrote: This Patch removes unnecessary if statement from a function that has no implementation (in kernel 2.6.x and 2.4.x); the function returns 0 with or without the if statement: static int z2_release(struct inode

[PATCH] Removes unnecessary "if" statement from drivers/block/z2ram.c

2005-02-23 Thread Telemaque Ndizihiwe
This Patch removes unnecessary "if" statement from a function without implementation (in kernel 2.6.x and 2.4.x), the function returns "0" with or without the "if" statement. Signed-off-by: Telemaque Ndizihiwe <[EMAIL PROTECTED]> --- linux-2.6.10/drivers/block/z2ram.c.orig2005-02-23

[PATCH] Removes unnecessary if statement from drivers/block/z2ram.c

2005-02-23 Thread Telemaque Ndizihiwe
This Patch removes unnecessary if statement from a function without implementation (in kernel 2.6.x and 2.4.x), the function returns 0 with or without the if statement. Signed-off-by: Telemaque Ndizihiwe [EMAIL PROTECTED] --- linux-2.6.10/drivers/block/z2ram.c.orig2005-02-23