lkml.org 
[lkml]   [2005]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
Subject[PATCH] Removes unnecessary "if" statement from drivers/block/z2ram.c
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 <telendiz@eircom.net>


--- linux-2.6.10/drivers/block/z2ram.c.orig 2005-02-23
18:02:51.011967584 +0000
+++ linux-2.6.10/drivers/block/z2ram.c 2005-02-23 18:05:31.617551824
+0000
@@ -304,9 +304,6 @@ err_out:
static int
z2_release( struct inode *inode, struct file *filp )
{
- if ( current_device == -1 )
- return 0;
-
/*
* FIXME: unmap memory
*/


--- linux-2.6.10/drivers/block/z2ram.c.orig 2005-02-23 18:02:51.011967584 +0000
+++ linux-2.6.10/drivers/block/z2ram.c 2005-02-23 18:05:31.617551824 +0000
@@ -304,9 +304,6 @@ err_out:
static int
z2_release( struct inode *inode, struct file *filp )
{
- if ( current_device == -1 )
- return 0;
-
/*
* FIXME: unmap memory
*/
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.076 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site