linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zwane Mwaikambo <zwane@linux.realnet.co.sz>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] if (foo) brelse(foo) in /drivers cleanup
Date: Sat, 1 Dec 2001 13:31:29 +0200 (SAST)	[thread overview]
Message-ID: <Pine.LNX.4.33.0112011330380.11026-100000@netfinity.realnet.co.sz> (raw)

Patch to remove the extra check before calling brelse in /drivers

-Zwane Mwaikambo

diffed against 2.5.1-pre4

diff -urN linux-2.5.1-pre4.orig/drivers/ide/pdcraid.c linux-2.5.1-pre4.brelse/drivers/ide/pdcraid.c
--- linux-2.5.1-pre4.orig/drivers/ide/pdcraid.c	Tue Nov 13 19:19:41 2001
+++ linux-2.5.1-pre4.brelse/drivers/ide/pdcraid.c	Sat Dec  1 07:47:23 2001
@@ -445,8 +445,7 @@
 	}
 	ret = 0;
 abort:
-	if (bh)
-		brelse (bh);
+	brelse (bh);
 	return ret;
 }

diff -urN linux-2.5.1-pre4.orig/drivers/md/md.c linux-2.5.1-pre4.brelse/drivers/md/md.c
--- linux-2.5.1-pre4.orig/drivers/md/md.c	Thu Oct 25 22:58:34 2001
+++ linux-2.5.1-pre4.brelse/drivers/md/md.c	Sat Dec  1 07:46:39 2001
@@ -501,8 +501,7 @@
 	printk(KERN_INFO " [events: %08lx]\n", (unsigned long)rdev->sb->events_lo);
 	ret = 0;
 abort:
-	if (bh)
-		brelse (bh);
+	brelse (bh);
 	return ret;
 }



                 reply	other threads:[~2001-12-01 11:27 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=Pine.LNX.4.33.0112011330380.11026-100000@netfinity.realnet.co.sz \
    --to=zwane@linux.realnet.co.sz \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).