[PATCH] DAC960: remove redundant (and uninitialized)
commitb7f6576cf858132ba37abc531f60d45bbda25722
authorAndrew Morton <akpm@osdl.org>
Tue, 23 Sep 2003 16:44:21 +0000 (23 09:44 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 23 Sep 2003 16:44:21 +0000 (23 09:44 -0700)
tree195413849b1f36cd407bc6e5613f10bc7543edd0
parenteb73c88b494e51bb5402978f030714557525bc8c
[PATCH] DAC960: remove redundant (and uninitialized)

From: Dave Olien <dmo@osdl.org>

this patch fixes a bug that appeared only on Alpha hardware with
DAC960 controllers.  The Command->PciDevice structure member was
never initialized.  This was passed to the pci scatter/gather functions.
This didn't cause a problem for x86 platforms because the scatter/gather
funtions never really used that information.  Alpha platforms do use
that pointer.

The Command->PciDevice field was also redundant with the Controller->PCIDevice
field, which IS initialized properly.  So, eliminating the redundant
structure member and substituting the Controller's member fixes the bug.
drivers/block/DAC960.c
drivers/block/DAC960.h