From: Telemaque Ndizihiwe <telendiz@eircom.net>
To: axboe@suse.de, Ingo.Wilken@informatik.uni-oldenburg.de
Cc: marcelo.tosatti@cyclades.com, torvalds@osdl.org, akpm@osdl.org,
trivial@rustcorp.com.au, linux-kernel@vger.kernel.org
Subject: [PATCH] Removes unnecessary "if" statement from drivers/block/z2ram.c
Date: Wed, 23 Feb 2005 18:35:27 +0000 [thread overview]
Message-ID: <421CCCEF.7000906@eircom.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
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
*/
[-- Attachment #2: z2ram.patch --]
[-- Type: text/x-patch, Size: 350 bytes --]
--- 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
*/
reply other threads:[~2005-02-23 18:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=421CCCEF.7000906@eircom.net \
--to=telendiz@eircom.net \
--cc=Ingo.Wilken@informatik.uni-oldenburg.de \
--cc=akpm@osdl.org \
--cc=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
--cc=torvalds@osdl.org \
--cc=trivial@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox