public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] DAC960 minor code cleanup for test3-mm2
@ 2003-08-13 21:29 Dave Olien
  0 siblings, 0 replies; only message in thread
From: Dave Olien @ 2003-08-13 21:29 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel


This patch applies to linux-2.6.0-test3-mm2.
It just does a one-line code cleanup to the previous patch, to
use an already present variable instead of deferencing a pointer.

diff -ur linux-2.6.0-test3_mm2_original/drivers/block/DAC960.c linux-2.6.0-test3_mm2_DAC/drivers/block/DAC960.c
--- linux-2.6.0-test3_mm2_original/drivers/block/DAC960.c	2003-08-13 14:11:24.000000000 -0700
+++ linux-2.6.0-test3_mm2_DAC/drivers/block/DAC960.c	2003-08-13 14:09:28.000000000 -0700
@@ -2487,7 +2487,8 @@
 
   for (n = 0; n < DAC960_MaxLogicalDrives; n++) {
 	struct gendisk *disk = Controller->disks[n];
-	Controller->disks[n]->queue = RequestQueue;
+
+	disk->queue = RequestQueue;
 	sprintf(disk->disk_name, "rd/c%dd%d", Controller->ControllerNumber, n);
 	sprintf(disk->devfs_name, "rd/c%dd%d", Controller->ControllerNumber, n);
 	disk->major = MajorNumber;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-13 21:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-13 21:29 [PATCH] DAC960 minor code cleanup for test3-mm2 Dave Olien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox